Christian Brabandt wrote:

> Bram,
> consider this:
> 
> cat /tmp/dict
> catharsis
> catechism
> catastrophe
> 
> vim -u NONE -N -c 'set cpt=k,. dictionary=/tmp/dict'
> 
> $put ='canz'
> $put ='canq'
> 0put ='ca'
> Got to the end of the first line, and press <C-N>
> 
> Note, how Vim hangs. This happens, because in the function 
> ins_compl_get_exp() in edit.c:4406 Vim will start an endless loop, 
> because the search wraps and it will keep finding matches and not 
> terminate the loop.
> 
> Attached patch fixes this.
> 
> This behaviour was mentioned at
> http://stackoverflow.com/questions/20968671

Thanks for the fix.


-- 
"Hit any key to continue" is a lie.

 /// 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/groups/opt_out.

Raspunde prin e-mail lui