[meld] Bug 578303 – Fix incremental diff update (Piotr Piastucki)



commit c4d63ac81ce5161637cf61a05688c42b7d140eb5
Author: Stephen Kennedy <stevek gnome org>
Date:   Fri Apr 17 23:07:09 2009 +0100

    Bug 578303 â?? Fix incremental diff update (Piotr Piastucki)
---
 diffutil.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/diffutil.py b/diffutil.py
index 88c9fc0..ab88818 100644
--- a/diffutil.py
+++ b/diffutil.py
@@ -77,6 +77,7 @@ class Differ(object):
             changes[0] = self._change_sequence(         0, sequence, startidx, sizechange, texts)
             if self.num_sequences == 3:
                 changes[1] = self._change_sequence(     1, sequence, startidx, sizechange, texts)
+        self.seqlength[sequence] += sizechange
         return changes
 
     def _locate_chunk(self, whichdiffs, sequence, line):
@@ -126,7 +127,6 @@ class Differ(object):
                                            c[3] + lines_added[x], c[4] + lines_added[x])
                                                 for c in self.diffs[which][hiidx:] ]
         self.diffs[which][loidx:hiidx] = newdiffs
-        self.seqlength[sequence] += sizechange
         return loidx,hiidx
 
     def reverse(self, c):



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