Hi Arnaud!
On Fr, 31 Jul 2015, Arnaud Decara wrote:
> Please find attached a fix.
> (Both issues with the change operator and 's' should
> be fixed; undiscovered similar issues that might have
> occured should be fixed too.)
I believe that breaks test_listlbr.out
Here is a slightly different approach, including a test. The idea is, to
only recalculate the oap->start_vcol and oap->end_vcol columns, if the
cursor is on a wrapped line, else that shouldn't be necessary. However,
I am not completely sure, this is the best solution.
Best,
Christian
--
Der Mensch, der sich vielen Glückes und seiner Schwäche bewußt ist,
wird abergläubisch, flüchtet zum Gebet.
-- Georg Christoph Lichtenberg
(Vermischte Schriften - Beobachtung über den Menschen)
--
--
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.
diff --git a/src/normal.c b/src/normal.c
--- a/src/normal.c
+++ b/src/normal.c
@@ -9582,10 +9582,11 @@ get_op_vcol(oap, redo_VIsual_vcol, initi
{
colnr_T start, end;
- if (VIsual_mode != Ctrl_V)
+ if (VIsual_mode != Ctrl_V ||
+ (!initial && oap->end.col < W_WIDTH(curwin)))
return;
- oap->block_mode = TRUE;
+ oap->block_mode = VIsual_active;
#ifdef FEAT_MBYTE
/* prevent from moving onto a trail byte */
diff --git a/src/testdir/test_listlbr.in b/src/testdir/test_listlbr.in
--- a/src/testdir/test_listlbr.in
+++ b/src/testdir/test_listlbr.in
@@ -80,6 +80,13 @@ Go
aaa
aaa
a2k2j~e.
+:let g:test ="Test 10: using normal commands after block-visual"
+:$put =g:test
+:set linebreak
+Go
+abcd{ef
+ghijklm
+no}pqrs2k0f{c%
:%w! test.out
:qa!
ENDTEST
diff --git a/src/testdir/test_listlbr.ok b/src/testdir/test_listlbr.ok
--- a/src/testdir/test_listlbr.ok
+++ b/src/testdir/test_listlbr.ok
@@ -46,3 +46,6 @@ Test 9: using redo after block visual mo
AaA
AaA
A
+Test 10: using normal commands after block-visual
+
+abcdpqrs