diff --git a/7.4.883 b/7.4.883 new file mode 100644 index 0000000..c3343a8 --- /dev/null +++ b/7.4.883 @@ -0,0 +1,79 @@ +To: vim_dev@googlegroups.com +Subject: Patch 7.4.883 +Fcc: outbox +From: Bram Moolenaar +Mime-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit +------------ + +Patch 7.4.883 (after 7.4.818) +Problem: Block-mode replace works characterwise instead of blockwise after + column 147. (Issue #422) +Solution: Set Visual mode. (Christian Brabandt) +Files: src/normal.c, src/testdir/test_listlbr.in, + src/testdir/test_listlbr.ok + + +*** ../vim-7.4.882/src/normal.c 2015-09-08 17:50:38.071546587 +0200 +--- src/normal.c 2015-09-25 19:24:44.890385976 +0200 +*************** +*** 9596,9602 **** + || (!initial && oap->end.col < W_WIDTH(curwin))) + return; + +! oap->block_mode = VIsual_active; + + #ifdef FEAT_MBYTE + /* prevent from moving onto a trail byte */ +--- 9596,9602 ---- + || (!initial && oap->end.col < W_WIDTH(curwin))) + return; + +! oap->block_mode = TRUE; + + #ifdef FEAT_MBYTE + /* prevent from moving onto a trail byte */ +*** ../vim-7.4.882/src/testdir/test_listlbr.in 2015-08-11 17:46:31.212481064 +0200 +--- src/testdir/test_listlbr.in 2015-09-25 19:24:44.890385976 +0200 +*************** +*** 87,92 **** +--- 87,96 ---- + 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 +*** ../vim-7.4.882/src/testdir/test_listlbr.ok 2015-08-11 17:46:31.212481064 +0200 +--- src/testdir/test_listlbr.ok 2015-09-25 19:24:44.890385976 +0200 +*************** +*** 49,51 **** +--- 49,54 ---- + Test 10: using normal commands after block-visual + + abcdpqrs ++ Test 11: using block replace mode after wrapping ++ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0aaa ++ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0aaa +*** ../vim-7.4.882/src/version.c 2015-09-25 19:12:16.282267255 +0200 +--- src/version.c 2015-09-25 19:24:18.338665510 +0200 +*************** +*** 743,744 **** +--- 743,746 ---- + { /* Add new patch number below this line */ ++ /**/ ++ 883, + /**/ + +-- +Me? A skeptic? I trust you have proof. + + /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ +/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ +\\\ an exciting new programming language -- http://www.Zimbu.org /// + \\\ help me help AIDS victims -- http://ICCF-Holland.org ///