[meld/ui-next] filediff: Remove unneeded keymask handling in find/replace actions



commit a8437f47573d9d335c4835c2660a9171ac05ff6b
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Mon Mar 11 06:44:15 2019 +1000

    filediff: Remove unneeded keymask handling in find/replace actions
    
    This code dates back to the initial findbar implementation, and it's
    not clear when it was last needed. The keymask handling has improved
    quite a bit over the years, and I can't think of any reason that this
    reset would be needed now (and in my testing, it's not).

 meld/filediff.py | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index 8589e21c..e2466719 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -1130,13 +1130,11 @@ class FileDiff(Gtk.VBox, MeldDoc):
         selected_text = self.get_selected_text()
         self.findbar.start_find(
             textview=self.focus_pane, replace=False, text=selected_text)
-        self.keymask = 0
 
     def on_replace_activate(self, *args):
         selected_text = self.get_selected_text()
         self.findbar.start_find(
             textview=self.focus_pane, replace=True, text=selected_text)
-        self.keymask = 0
 
     def on_find_next_activate(self, *args):
         self.findbar.start_find_next(self.focus_pane)


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