Christian Brabandt wrote:

> On Mo, 18 Mai 2015, Ingo Karkat wrote:
> 
> > Hello Vim developers,
> > 
> > appending to the end of a visual blockwise selection can be done with
> > the A command. I just noticed that this doesn't work reliably any more
> > when
> > - lines are wrapped and the cursor is in a following screen line AND
> > - :set linebreak
> > This happens with "real" blocks as well as a corner case single-line
> > blockwise selection.
> > To reproduce:
> > 
> >     vim -N -u NONE
> >     :set linebreak
> >     :normal! 40afoo bar
> >     :normal! BB^VeAX
> > Appending should be after the selected word ("barfooX"), but it occurs
> > at the beginning instead ("Xbarfoo").
> > 
> > I've bisected this down to the following patch:
> > 
> > ,----[ bad change ]----
> > | 7.4.576  redrawing problem with 'relativenumber' and 'linebreak'
> > `----
> > 
> > Attached is a test that verifies the correct behavior.
> > 
> > I can reproduce this on Vim version 7.4.716 on Windows/x64 as well as on
> > latest Vim 7.4.729 on Linux/x64.
> > 
> 
> I can reproduce it. Thanks for the feedback. Looks like one needs to 
> recalculate the virtual column numbers after resetting the linebreak 
> option. This also happens for the OP_REPLACE part. Here is a patch, 
> including your testcase.

Thanks for the patch!  Oh, the updated one.

-- 
>From "know your smileys":
 :-)-O  Smiling doctor with stethoscope

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