Hello VIM developers,
I've encountered occasional endless loops when trying to jump to the next
misspelled word (via ]s) in HTML documents, in the case when there aren't any
misspellings. VIM then starts consuming all available CPU until the operation
is
aborted via CTRL-C. I was able to come up with a minimal test case to reproduce
this problem:
cat > test.html <<'EOF'
<html>
<body>
<p> In here appears the bug. </p>
</body>
</html>
EOF
vim -N -u NONE test.html
:syntax on
:setlocal spell
/here
:normal! ]s
" VIM hangs; press CTRL-C to get out of the loop.
:normal! j]s
" On any other line, VIM just correctly prints
" "search hit BOTTOM, continuing at TOP"
The loop only occurs when the cursor is inside the <p>...</p>. It seems that
VIM
then doesn't detect that the entire buffer has been searched and keeps on
searching forever; the bug doesn't manifest itself when 'wrapscan' is turned
off.
The syntax/html.vim script sets ':syn spell toplevel' and attaches @Spell to
some syntax clusters, but doesn't do anything strange or overly complex.
Probably, other filetypes can be affected by this, too.
I can reproduce this problem starting from VIM 7.0 up to VIM 7.2.84, on MS
Windows and Linux/x86.
-- regards, ingo
PS: 3 days ago, I submitted another bug
(http://groups.google.com/group/vim_dev/browse_thread/thread/b137e4576bdc0682)
that nobody yet acknowledged or commented on; Bram, have you seen it?
--
-- Ingo Karkat -- /^-- /^-- /^-- /^-- /^-- /^-- http://ingo-karkat.de/ --
--
Every successful person has had failures but repeated failure is no
guarantee of eventual success.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---