forked from aniani/vim
updated for version 7.4.099
Problem: Append in blockwise Visual mode with "$" is wrong. Solution: After "$" don't use the code that checks if the cursor was moved. (Hirohito Higashi, Ken Takata)
This commit is contained in:
@@ -2643,7 +2643,7 @@ op_insert(oap, count1)
|
|||||||
|
|
||||||
/* The user may have moved the cursor before inserting something, try
|
/* The user may have moved the cursor before inserting something, try
|
||||||
* to adjust the block for that. */
|
* to adjust the block for that. */
|
||||||
if (oap->start.lnum == curbuf->b_op_start.lnum)
|
if (oap->start.lnum == curbuf->b_op_start.lnum && !bd.is_MAX)
|
||||||
{
|
{
|
||||||
if (oap->op_type == OP_INSERT
|
if (oap->op_type == OP_INSERT
|
||||||
&& oap->start.col != curbuf->b_op_start.col)
|
&& oap->start.col != curbuf->b_op_start.col)
|
||||||
|
@@ -23,6 +23,18 @@ G$khhhhhkkcmno
|
|||||||
/^aaaa/
|
/^aaaa/
|
||||||
:exe ":norm! l\<C-V>jjjlllI\<Right>\<Right> \<Esc>"
|
:exe ":norm! l\<C-V>jjjlllI\<Right>\<Right> \<Esc>"
|
||||||
:/^aa/,/^$/w >> test.out
|
:/^aa/,/^$/w >> test.out
|
||||||
|
:" Test for Visual block was created with the last <C-v>$
|
||||||
|
/^A23$/
|
||||||
|
:exe ":norm! l\<C-V>j$Aab\<Esc>"
|
||||||
|
:.,/^$/w >> test.out
|
||||||
|
:" Test for Visual block was created with the middle <C-v>$ (1)
|
||||||
|
/^B23$/
|
||||||
|
:exe ":norm! l\<C-V>j$hAab\<Esc>"
|
||||||
|
:.,/^$/w >> test.out
|
||||||
|
:" Test for Visual block was created with the middle <C-v>$ (2)
|
||||||
|
/^C23$/
|
||||||
|
:exe ":norm! l\<C-V>j$hhAab\<Esc>"
|
||||||
|
:.,/^$/w >> test.out
|
||||||
:" gUe must uppercase a whole word, also when <20> changes to SS
|
:" gUe must uppercase a whole word, also when <20> changes to SS
|
||||||
Gothe youtu<74>euu endYpk0wgUe
|
Gothe youtu<74>euu endYpk0wgUe
|
||||||
:" gUfx must uppercase until x, inclusive.
|
:" gUfx must uppercase until x, inclusive.
|
||||||
@@ -49,6 +61,15 @@ bbbbbb
|
|||||||
bbbbbb
|
bbbbbb
|
||||||
cccccc
|
cccccc
|
||||||
dddddd
|
dddddd
|
||||||
|
|
||||||
|
A23
|
||||||
|
4567
|
||||||
|
|
||||||
|
B23
|
||||||
|
4567
|
||||||
|
|
||||||
|
C23
|
||||||
|
4567
|
||||||
|
|
||||||
abcdefghijklm
|
abcdefghijklm
|
||||||
abcdefghijklm
|
abcdefghijklm
|
||||||
|
Binary file not shown.
@@ -738,6 +738,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 */
|
||||||
|
/**/
|
||||||
|
99,
|
||||||
/**/
|
/**/
|
||||||
98,
|
98,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user