Johannes Hoff <johan...@johanneshoff.com> added the comment:

I came across this bug while searching for autodetecting tabs/spaces. 
Thanks for the help.

To address Georg's question, the patch should be modified to say
    if search('^\t', 'n', 100)
instead of
    if search('^\t')

The former will not move the cursor, and will only search the first 100 
lines.

----------
nosy: +johshoff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5611>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to