On Mi, 23 Apr 2014, Christian Brabandt wrote:

> Hi Bram!
> 
> On Mi, 23 Apr 2014, Bram Moolenaar wrote:
> 
> > 
> > Christian Brabandt wrote:
> > 
> > > Am 2014-04-20 13:37, schrieb Pine Wu:
> > > > Hello Vim devs:
> > > > The online doc (7.3) says "send bugs to [email protected]", but in my vim
> > > > 7.4 it says unless it's security issue just post it here. So here I am
> > > > :-)
> > > > 
> > > > 
> > > > As for i_Ctrl-U, vim doc says:
> > > > Delete all entered characters in the current line (see i_backspacing
> > > > about joining lines).
> > > > 
> > > > That is the case when you don't use arrow keys to move the cursor
> > > > e.g.
> > > > For a line:
> > > > 
> > > > vim
> > > > 
> > > > You type a, vim, Ctrl-U, what's left is
> > > > 
> > > > vim
> > > > 
> > > > That is what you'd expect, but
> > > > If you type a, vim, <Left-Arrow>, the line would be
> > > > 
> > > > vimvim
> > > > 
> > > > Then Ctrl-U
> > > > All text before cursor would be deleted, what's left is
> > > > 
> > > > m
> > > > 
> > > > I was expecting vim or vimm
> > > 
> > > I was going to say, for me the first result wouldn't be expected. While 
> > > the second one was.
> > > Turns out, I have mapped Ctrl-U to break the undo sequence (to be able 
> > > to undo an accidental Ctrl-U)
> > > and this results in always deleting until the first column, and for the 
> > > same reason, pressing
> > > arrow keys results in that unexpected manner.
> > > 
> > > Turns out, because of patch 7.4.183, a fix is really simple, something 
> > > like the attached patch.
> > > (I'll try to update that patch to include a test later today).
> > > 
> > > Interestingly, this has gotten unnoticed for so long. It seems Ctrl-U
> > > in insert mode is just such an mysteric command, that one always
> > > expects it to be doing the wrong thing ;)
> > 
> > I also have trouble reproducing this.  'compatible' matters.
> > 
> > Anyway, can you please add some test for this to the patch?
> 
> Here we go. I added some more usage of i_Ctrl-U

I think, it is actually reasonable, to expect an attachment. So let's 
try that again.

Best,
Christian
-- 
Es sind aber die Schmutzigsten, von denen man sagt, daß sie mit allen Wassern
gewaschen sind.

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