This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mkiever
Recipients
Date 2007-01-19.20:50:46
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Same behaviour on Linux and current Python trunk.
In addition I get an IndexError, if I delete the
last character of the search string.
Does Tk allow calling search with an empty pattern?

Tkinter could handle this (with a correct result)
with the following change in Tkinter.py / Text.search():

if pattern[0] == '-': args.append('--')
->
if pattern and pattern[0] == '-': args.append('--')

Greetings,
Matthias Kievernagel
History
Date User Action Args
2007-08-23 14:44:16adminlinkissue1581476 messages
2007-08-23 14:44:16admincreate