[issue5611] Auto-detect indentation in C source in vimrc
Johannes Hoff
report at bugs.python.org
Thu Jun 4 13:39:31 CEST 2009
Johannes Hoff <johannes at 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 <report at bugs.python.org>
<http://bugs.python.org/issue5611>
_______________________________________
More information about the Python-bugs-list
mailing list