Olaf Dabrunz wrote:

> to reproduce this:
> 
>     Edit a text with a few lines. (This does not work on only one line, as a
>     buffer must contain at least one line, and the mark won't be deleted.)
> 
>         textline A
>         textline B
>         textline C
> 
>     Navigate to the second line and set a named mark, for example with 'ma'.
>     Then delete the line with the mark ('dd'). The mark is gone:
> 
>         :marks a
>         E283: No marks matching "a"
> 
>     Undo the deletion ('u') and check that the mark is there again:
> 
>         :marks a
>         mark line  col file/text
>          a      2    5 textline B
> 
>     Redo the deletion ('CTRL-R'). The mark is gone again.
>     Undo the deletion again. The mark remains gone.
> 
> The problem is that the undo/redo code only saves a mark from the current
> buffer when the undo/redo node already contains a valid saved mark of that
> name.
> 
> The patch below fixes this.

Thanks!  I'll check it out.

If you have some time, it's always good to have a test that checks the
problem is fixed.


-- 
hundred-and-one symptoms of being an internet addict:
233. You start dreaming about web pages...in html.

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