Skip to content

Commit

Permalink
Add search term to history during replace (all) (DistributedProofread…
Browse files Browse the repository at this point in the history
…ers#235)

Replace All did not add the search term to the search history.
  • Loading branch information
windymilla authored May 16, 2024
1 parent a48429c commit 616d733
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/guiguts/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 616d733

Please sign in to comment.