[meld] Clear inline highlighting tags on comparison refresh



commit 6999a0d1c131b13a104365508324ccbd6b53b091
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Wed Apr 3 07:40:59 2013 +1000

    Clear inline highlighting tags on comparison refresh

 meld/filediff.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index e923f37..e4ca64a 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -1143,6 +1143,11 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
         """Refresh the view by clearing and redoing all comparisons"""
         self._disconnect_buffer_handlers()
         self.linediffer.clear()
+
+        for buf in self.textbuffer:
+            tag = buf.get_tag_table().lookup("inline")
+            buf.remove_tag(tag, buf.get_start_iter(), buf.get_end_iter())
+
         self.queue_draw()
         self.scheduler.add_task(self._diff_files())
 


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