Christian Brabandt wrote:

> Bram,
> 
> On Fr, 07 Mär 2014, Christian Brabandt wrote:
> [new :undorecover command]
> 
> Attached is a new patch. It works by restoring each line to the last 
> known state, which means, the recovered buffer might be inconsistent, 
> since you basically end up with a mix of undo states.
> 
> Secondly, on any undofile that was written with a non-patched Vim, it 
> will probably only restore the buffer partly. From the undofile of my 
> .vimrc (currently containing 402 lines with many lines empty or 
> commented out) I could recover 50 lines (with about 450 empty lines in 
> between).
> 
> Therefore this patch makes Vim store one complete buffer content in the 
> undofile, so recovery will be more useful.

Thanks.  I'll have a look at it later.

> Bram wrote:
> > > Also, this is difficult to test with something under src/testdir.  It's
> > > probably more suited for a unittest like memfile_test.c does.
> 
> Not sure, how about to do that currently, so I am skipping this part for 
> now.

OK, but we should have some tests before including this patch.

-- 
Living on Earth includes an annual free trip around the Sun.

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