Skip to content

Commit 61a9b63

Browse files
committed
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)
1 parent 0cb06ee commit 61a9b63

File tree

4 files changed

+24
-1
lines changed

4 files changed

+24
-1
lines changed

src/ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2643,7 +2643,7 @@ op_insert(oap, count1)
26432643

26442644
/* The user may have moved the cursor before inserting something, try
26452645
* to adjust the block for that. */
2646-
if (oap->start.lnum == curbuf->b_op_start.lnum)
2646+
if (oap->start.lnum == curbuf->b_op_start.lnum && !bd.is_MAX)
26472647
{
26482648
if (oap->op_type == OP_INSERT
26492649
&& oap->start.col != curbuf->b_op_start.col)

src/testdir/test39.in

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@ G$khhhhhkkcmno
2323
/^aaaa/
2424
:exe ":norm! l\<C-V>jjjlllI\<Right>\<Right> \<Esc>"
2525
:/^aa/,/^$/w >> test.out
26+
:" Test for Visual block was created with the last <C-v>$
27+
/^A23$/
28+
:exe ":norm! l\<C-V>j$Aab\<Esc>"
29+
:.,/^$/w >> test.out
30+
:" Test for Visual block was created with the middle <C-v>$ (1)
31+
/^B23$/
32+
:exe ":norm! l\<C-V>j$hAab\<Esc>"
33+
:.,/^$/w >> test.out
34+
:" Test for Visual block was created with the middle <C-v>$ (2)
35+
/^C23$/
36+
:exe ":norm! l\<C-V>j$hhAab\<Esc>"
37+
:.,/^$/w >> test.out
2638
:" gUe must uppercase a whole word, also when � changes to SS
2739
Gothe youtu�euu endYpk0wgUe
2840
:" gUfx must uppercase until x, inclusive.
@@ -49,6 +61,15 @@ bbbbbb
4961
cccccc
5062
dddddd
5163

64+
A23
65+
4567
66+
67+
B23
68+
4567
69+
70+
C23
71+
4567
72+
5273
abcdefghijklm
5374
abcdefghijklm
5475
abcdefghijklm

src/testdir/test39.ok

43 Bytes
Binary file not shown.

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static char *(features[]) =
738738

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
99,
741743
/**/
742744
98,
743745
/**/

0 commit comments

Comments
 (0)