[meld/meld-1-8] filediff: Don't disable updating when syncpoints aren't yet active



commit 9e4eff2b57d320b70be75d742a17898bcd40ff1a
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sat Dec 14 08:57:15 2013 +1000

    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.

 meld/filediff.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index aaf1d22..f270fa8 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -724,7 +724,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,
                                                 self.buffer_filtered)
             # FIXME: diff-changed signal for the current buffer would be cleaner


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]