From 616d733171d69d260dcfe18120a5b2cef0833659 Mon Sep 17 00:00:00 2001 From: Nigel Date: Thu, 16 May 2024 14:18:00 +0100 Subject: [PATCH] Add search term to history during replace (all) (#235) Replace All did not add the search term to the search history. --- src/guiguts/search.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/guiguts/search.py b/src/guiguts/search.py index 51e64082..ac3061cf 100644 --- a/src/guiguts/search.py +++ b/src/guiguts/search.py @@ -394,6 +394,7 @@ def replace_clicked( "break" to avoid calling other callbacks """ search_string = self.search_box.get() + self.search_box.add_to_history(search_string) replace_string = self.replace_box.get() self.replace_box.add_to_history(replace_string) @@ -430,6 +431,7 @@ def replaceall_clicked(self) -> None: Replace in whole file or just in selection. """ search_string = self.search_box.get() + self.search_box.add_to_history(search_string) replace_string = self.replace_box.get() self.replace_box.add_to_history(replace_string)