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;
}
if (VIsual_active) {
oap->motion_type = MBLOCK;
}
oap->motion_type = MBLOCK;
// prevent from moving onto a trail byte
if (has_mbyte) {

View File

@ -88,6 +88,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

View File

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

View File

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