mirror of
https://github.com/python/cpython.git
synced 2025-10-29 04:35:05 +00:00
By default when getting the search menu, the currently highligted
text is the search term.
This commit is contained in:
parent
110aa50cc2
commit
5a231c8f79
2 changed files with 6 additions and 2 deletions
|
|
@ -11,7 +11,8 @@ def _setup(text):
|
|||
return engine._searchdialog
|
||||
|
||||
def find(text):
|
||||
return _setup(text).open(text)
|
||||
pat = text.get("sel.first", "sel.last")
|
||||
return _setup(text).open(text,pat)
|
||||
|
||||
def find_again(text):
|
||||
return _setup(text).find_again(text)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue