Mercurial > vim
changeset 7143:fe6d525d12f4 v7.4.883
commit https://github.com/vim/vim/commit/10ad1d90da8c464e1bf08bf23d92d4888378a8a1
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 25 19:35:02 2015 +0200
patch 7.4.883
Problem: Block-mode replace works characterwise instead of blockwise after
column 147. (Issue #422)
Solution: Set Visual mode. (Christian Brabandt)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 25 Sep 2015 19:45:04 +0200 |
parents | bfb6dbcb11a0 |
children | 7d9399926bdc |
files | src/normal.c src/testdir/test_listlbr.in src/testdir/test_listlbr.ok src/version.c |
diffstat | 4 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 */
--- 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
--- 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