mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 7.4.883
Problem: Block-mode replace works characterwise instead of blockwise after column 147. (Issue #422) Solution: Set Visual mode. (Christian Brabandt)
This commit is contained in:
@@ -9596,7 +9596,7 @@ get_op_vcol(oap, redo_VIsual_vcol, initial)
|
|||||||
|| (!initial && oap->end.col < W_WIDTH(curwin)))
|
|| (!initial && oap->end.col < W_WIDTH(curwin)))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
oap->block_mode = VIsual_active;
|
oap->block_mode = TRUE;
|
||||||
|
|
||||||
#ifdef FEAT_MBYTE
|
#ifdef FEAT_MBYTE
|
||||||
/* prevent from moving onto a trail byte */
|
/* prevent from moving onto a trail byte */
|
||||||
|
@@ -87,6 +87,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
|
||||||
|
@@ -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
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
883,
|
||||||
/**/
|
/**/
|
||||||
882,
|
882,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user