Commit cd96a6ec authored by Kai Willadsen's avatar Kai Willadsen

filediff: Don't disable updating when syncpoints aren't yet active

This is a problem if, for example, the user sets a syncpoint in the
left pane without setting one in the right pane. We need matching
syncpoints in each pane to do the syncing so don't actually sync and
don't show our warning, but we do disable comparison updating.

This patch changes this so that we only disable comparison updating
if the actual differ has a list of syncpoints that it's using.
parent 05c7866e
......@@ -781,7 +781,7 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
def _after_text_modified(self, buffer, startline, sizechange):
if self.num_panes > 1:
pane = self.textbuffer.index(buffer)
if not self.syncpoints:
if not self.linediffer.syncpoints:
self.linediffer.change_sequence(pane, startline, sizechange,
# FIXME: diff-changed signal for the current buffer would be cleaner
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment