-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 24-May-2015 13:15, 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.
Thank you Christian! Unfortunately, there's still an off-by-one error
with :set selection=exclusive; the cursor is positioned one character
left of the selection's end (resulting in "barfoXo" in the test).
I hope that is easy to fix; it might also be worthwhile to test that
variation, too.
- -- regards, ingo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
iQEcBAEBAgAGBQJVZJrWAAoJEA7ziXlAzQ/vjNYH/3dBvD8VuYlIdUx8bLwYhPZ5
Iba4jI/sf63UQpRY2UsYU+TDiTIHF/odFv1Wc+5+YshuUQoEvB8n+SgpO/HCTBSu
UPscktn6K/f2cJ5l6d+VP2D/ZCiO+WLhnPAC4nTN5rAImtKfVxcEU3EhqpRt6745
l2/A6TQVlRbW6P7SE+PUsFVnBpUumdLMEJ/9fKYHBH31QqDPdSNyvhq4h+rGOWCC
I2KFbE24gykd3C3oKxId1GOSfsS077fzPFMjMaqd90KN68zYn7Y083UghmSWnxbm
DPOaydwWo5i6S5GxWxo17ydIFXAHjAZPsN/7SsyNNJbr57H7ktADvsMcdtjfvjI=
=mLDv
-----END PGP SIGNATURE-----
--
--
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.