Hi Ben!
On Mi, 16 Sep 2015, Ben Fritz wrote:
> On Wednesday, September 16, 2015 at 10:38:49 AM UTC-5, fritzophrenic wrote:
> > This works fine:
> >
> > gvim -N -u NONE -i NONE
> > 150aa
> > yyp
> > :set nowrap linebreak
> > 147|
> > CTRL+Vj
> > r0
> >
> >
> >
> > Now do this:
> >
> > u
> > 148|
>
> Weird, that got truncated. Copied from GitHub:
>
> This works fine:
>
> gvim -N -u NONE -i NONE
> 150aa
> yyp
> :set nowrap linebreak
> 147|
> CTRL+Vj
> r0
>
> Now do this:
>
> u
> 148|
> .
>
> Then this:
>
> u
> 148|
> CTRL+Vj
> r0
>
> Both of the bottom two sequences result in the following text:
>
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa000
> 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000aa
>
> This is expected instead:
>
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0aa
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0aa
>
Looks like a regression from patch 7.4.818, sorry about that. Attached
is a patch, that fixes it, including a test.
Attachment won't be visible in github however.
Best,
Christian
--
Wer aus dem Rahmen fällt war vorher nicht unbedingt im Bilde.
--
--
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
@@ -9596,7 +9596,7 @@ get_op_vcol(oap, redo_VIsual_vcol, initi
|| (!initial && oap->end.col < W_WIDTH(curwin)))
return;
- oap->block_mode = VIsual_active;
+ oap->block_mode = TRUE;
#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
@@ -87,6 +87,10 @@ Go
abcd{ef
ghijklm
no}pqrs2k0f{c%
+:let g:test ="Test 11: using block replace mode after wrapping"
+:$put =g:test
+:set linebreak wrap
+Go150aayypk147|jr0
:%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
@@ -49,3 +49,6 @@ A
Test 10: using normal commands after block-visual
abcdpqrs
+Test 11: using block replace mode after wrapping
+aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0aaa
+aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0aaa