Ken Takata wrote:

> 2017/2/24 Fri 8:42:16 UTC+9 Manuel Ortega wrote:
> > The ]s command for moving to the next spelling error has become broken 
> > recently.  Sometime within the last three weeks I would guess.
> > 
> > 
> > Create a text file called "foo" containing the following text (one line):
> > 
> > 
> > This was a tricky problem.  We're given a sheep, and a shoezp  where A is 
> > the incumbent senator and the dzenj said hello.
> > 
> > 
> > Now from the terminal do `vim -u NONE -i NONE -N --noplugin foo`.
> > 
> > 
> > Then do ":set spell".  The two error words are then highlighted.  Hit ]s 
> > twice to put the cursor on the word "dzenj".  Now hit ]s again.
> > 
> > 
> > Expected behavior: the cursor cycles around and lands on the world "shoezp".
> > 
> > 
> > Actual behavior: Despite seeing a "search hit BOTTOM, continuing at TOP" 
> > message (as I should), the cursor stays stuck on the last error word 
> > "dzjenj" and won't cycle around.
> > 
> > 
> > I note that the [s command cycles between the two erros as expected.  Only 
> > ]s is broken.
> > 
> > 
> > This is not an artifact of the test file containing only one line, because 
> > if I add other lines to "foo" that contain no spelling errors, I see the 
> > same behavior.
> > 
> > 
> > This is macOS 10.12.3, vim 8.0.363.
> 
> It seems that this occurs when the cursor is in the first line and there are
> no wrong words after the second line.  Maybe, this was so for a long time,
> not broken recently.
> 
> I think attached patch fixes the problem.  Not tested well, though.
> Maybe, comments should be properly updated.

Thanks!  I'll add a test for the example.

I don't think this changed recently, must be an older problem.

-- 
hundred-and-one symptoms of being an internet addict:
20. When looking at a pageful of someone else's links, you notice all of them
    are already highlighted in purple.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui