Christian Brabandt wrote:
> On Di, 14 Feb 2012, Андрей Радев wrote:
>
> > Hello,
> >
> > I've encountered some odd behaviour with Vim. I have a file containing
> > the following text:
> >
> > one = {
> > two: {
> > three: four;
> > }
> > }
> > // Some text here;
> >
> > I do the following:
> >
> > 1. Go to the first "t" in "three: four;", mark the line in
> > character-wise visual mode (with "v$") and then yank it.
> > 2. Press "Va{" to mark the curly brackets.
> > 3. Paste
> >
> > The result looks like this:
> >
> > one = {
> > two: three: four;
> > }
> > // Some text here;
> >
> > However, if the "Some text" line is not present, so that the "}" is on
> > the last line of the file, the result is this:
> >
> > one = {
> > two: three: four;}
> >
> > If I perform an undo with "u", it turns into this:
> >
> > one = {
> > two: {
> > three: four;
> > }
> > two: }
> >
> > The file is marked as unmodified, and quitting Vim leaves it exactly
> > as if the undo worked correctly. However, saving the file results in
> > this text being saved to disk.
>
> Looks familiar¹ and seems to be another regression from patch 7.3.251.
>
> However, I think, this patch fixes it:
Thanks! I'll look into it soon.
--
hundred-and-one symptoms of being an internet addict:
58. You turn on your computer and turn off your wife.
/// 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