[meld] Clear inline highlighting cache on refresh/reload



commit 372e1bcf5fff3940561c2f498a43ab6aa00e5b66
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Fri Jul 2 08:29:56 2010 +1000

    Clear inline highlighting cache on refresh/reload
    
    Without this change, inline highlighting marks disappeared on reload
    and did not reappear, and refresh/reload reused cached inline
    highlighting information. Here, we clear the cache to force
    recalculation and redrawing of highlights.

 meld/filediff.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index 3440975..a59da8b 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -684,6 +684,7 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
            If an element is None, the text of a pane is left as is.
         """
         self._disconnect_buffer_handlers()
+        self._inline_cache = set()
         for i,f in enumerate(files):
             if f:
                 self.textbuffer[i].delete(*self.textbuffer[i].get_bounds())



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