Lech Lorens wrote:
> The attached patch fixes the behaviour of Vim where histadd() and
> searching with * fail to add elements to history if the history is
> empty.
>
> How to reproduce:
>
> Problem with histadd():
>
> $ vim -i NONE -c 'call histadd("search", "search")' \
> -c 'call histadd("search", "for")' \
> -c 'call histadd("search", "some")' \
> -c 'call histadd("search", "words")' \
> -c 'call feedkeys("q/")'
>
> Problem with searching with *:
>
> vim -i NONE -c 'normal ido' \
> -c 'normal osome' \
> -c 'normal osearching' \
> -c 'normal oplease' \
> -c 'normal gg' \
> -c 'normal *' \
> -c 'call feedkeys("q/")'
>
> Note that the window containing the history is empty, although it should
> contain 4 elements in the first case and 1 element in the second case.
Thanks, I'll put it in the todo list.
--
Seen it all, done it all, can't remember most of it.
/// 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