Roland Eggner wrote:

> After update 7.3.{865,969} I notice this regression:
> “:wviminfo! filename” writes only new history entries, misses old
> entries read by “:rviminfo! filename”.  “:history” shows old and new
> entries properly, apart from the fact, that entries from viminfo
> versions older than the previous one are missing (even far below the
> history limit).  This renders the viminfo-feature almost useless for
> my needs, I will go back to 7.3.865.
> 
> I tried to create minimalistic steps for reproduction of the problem
> and found another error:  When starting with empty history and not
> using “:rviminfo”, then history seems to remain empty for ever, and
> “:history” fails with a surprising 
> error message:
> 
> LC_MESSAGES=C vim -u NONE -c ':set nocompatible history=20' \
>       -c ':echo "first history entry"' \
>       -c ':set viminfo? history?' \
>       -c ':history' \
>       -c ':wviminfo! test.viminfo' \
>       -c ':q'
> --------------------------------------
> first history entry
>   viminfo='100,<50,s10,h
>   history=20
> 'history' option is zero

[...]

> Just in case “-u NONE” disables history, I tried the following commandline 
> and 
> got the same result:
> LC_MESSAGES=C vim -u /dev/null -i test.viminfo --noplugin \
>       -c ':set nocompatible history=20' \
>       -c ':echo "first"' \
>       -c ':set viminfo?  history?' \
>       -c ':history' \
>       -c ':wviminfo! test.viminfo' \
>       -c ':q'
> 
> 
> Even repeating above vim commandline after inserting a history entry with 
> following sed command yields the very same result:
> sed -i -e '/Command Line History/a :echo "inserted by sed"' test.viminfo
> 
> 
> Regression probably caused by any of this commits:

[...]

Thanks for reporting clearly.  I'll add this in the todo list.
It's probably a matter of writing old entries when not reading back from
an existing viminfo file.

-- 
>From "know your smileys":
 !-|    I-am-a-Cylon-Centurian-with-one-red-eye-bouncing-back-and-forth

 /// 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