vim-patch:7.4.883

Problem:    Block-mode replace works characterwise instead of blockwise after
            column 147. (Issue #422)
Solution:   Set Visual mode. (Christian Brabandt)

10ad1d90da
This commit is contained in:
watiko 2016-02-11 16:42:20 +09:00
parent 66571f64a4
commit 8eb0d43c12
4 changed files with 9 additions and 4 deletions

View File

@ -7797,9 +7797,7 @@ static void get_op_vcol(
return; return;
} }
if (VIsual_active) { oap->motion_type = MBLOCK;
oap->motion_type = MBLOCK;
}
// prevent from moving onto a trail byte // prevent from moving onto a trail byte
if (has_mbyte) { if (has_mbyte) {

View File

@ -88,6 +88,10 @@ Go
abcd{ef abcd{ef
ghijklm ghijklm
no}pqrs2k0f{c% 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 :%w! test.out
:qa! :qa!
ENDTEST ENDTEST

View File

@ -49,3 +49,6 @@ A
Test 10: using normal commands after block-visual Test 10: using normal commands after block-visual
abcdpqrs abcdpqrs
Test 11: using block replace mode after wrapping
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0aaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0aaa

View File

@ -405,7 +405,7 @@ static int included_patches[] = {
// 886 NA // 886 NA
// 885, // 885,
// 884 NA // 884 NA
// 883, 883,
// 882, // 882,
// 881, // 881,
// 880 NA // 880 NA