Ingo Karkat wrote:
> 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. I'll put it in the todo list. > 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? This problem was already in the todo list. -- "Making it up? Why should I want to make anything up? Life's bad enough as it is without wanting to invent any more of it." -- Marvin, the Paranoid Android in Douglas Adams' "The Hitchhiker's Guide to the Galaxy" /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
