commit | 5a231c8f790b1d48daa83fc14b54c056d1330d45 | [log] [tgz] |
---|---|---|
author | Chui Tey <chui.tey@advdata.com.au> | Wed Nov 06 02:18:45 2002 +0000 |
committer | Chui Tey <chui.tey@advdata.com.au> | Wed Nov 06 02:18:45 2002 +0000 |
tree | 49116bd80f1acd09dfdbafc005848ccd1f1ece75 | |
parent | 110aa50cc244cd4c32ab90aeed6e2ad6515365b5 [diff] [blame] |
By default when getting the search menu, the currently highligted text is the search term.
diff --git a/Lib/idlelib/SearchDialog.py b/Lib/idlelib/SearchDialog.py index 8d275c4..d7124d6 100644 --- a/Lib/idlelib/SearchDialog.py +++ b/Lib/idlelib/SearchDialog.py
@@ -11,7 +11,8 @@ 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)