Friday, May 14, 2010

Re: Broken undo?

Israel Chauca wrote:

> On May 13, 2010, at 3:56 PM, Bram Moolenaar wrote:
> >
> >
> >>> That indeed looks like a bug.
> >>
> >> Good to know. Should I write a ticket for this bug somewhere or do
> >> something else?
> >
> > No need. Storing bugs in a dusty database won't help getting them
> > solved.
>
> Noted.
>
> >>>> If I undo again, I get the original empty window.
> >>>>
> >>>> If I start in the second step, I can't undo to the empty window, I'm
> >>>> left with two lines but I can exit vim as if the buffer was in its
> >>>> original state.
> >>>
> >>> I don't see this problem.
> >>
> >> I can reproduce it in the default vim for MacOS X 10.6 and MacVim, but
> >> neither of them are the latest version, when I can compile vim in my
> >> Mac I'll try again.
> >
> > Perhaps you need to explain more cleary what you do exactly.
>
> The next steps are are just one insert:
> 1. Insert 1.
> 2. Now <C-R>=setline('.','12')<CR>
> 3. Insert <CR>
> 4. Exit insert mode and undo (u).
>
> The buffer should be empty but it has two lines, the first one is
> empty and the second one has the number 2 in it. Since the buffer
> isn't empty, I should get E37 when I :quit, instead vim exits without
> any message.
>
> Let's see if that works.

I see it. It's the same problem as the first one in a different form.

--
hundred-and-one symptoms of being an internet addict:
34. You laugh at people with 14400 baud modems.

/// Bram Moolenaar -- Bram@Moolenaar.net -- 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_use" 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

No comments: