File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4434,9 +4434,10 @@ current_quote(
44344434 return FALSE;
44354435
44364436 vis_bef_curs = LT_POS (VIsual , curwin -> w_cursor );
4437+ vis_empty = EQUAL_POS (VIsual , curwin -> w_cursor );
44374438 if (* p_sel == 'e' )
44384439 {
4439- if (!vis_bef_curs )
4440+ if (!vis_bef_curs && ! vis_empty )
44404441 {
44414442 // VIsual needs to be the start of Visual selection.
44424443 pos_T t = curwin -> w_cursor ;
@@ -4447,8 +4448,8 @@ current_quote(
44474448 restore_vis_bef = TRUE;
44484449 }
44494450 dec_cursor ();
4451+ vis_empty = EQUAL_POS (VIsual , curwin -> w_cursor );
44504452 }
4451- vis_empty = EQUAL_POS (VIsual , curwin -> w_cursor );
44524453 }
44534454
44544455 if (!vis_empty )
Original file line number Diff line number Diff line change @@ -47,6 +47,9 @@ func Test_quote_selection_selection_exclusive()
4747 set selection = exclusive
4848 exe " norm! fdvhi'y"
4949 call assert_equal (' bcde' , @" )
50+ let @" = ' dummy'
51+ exe " norm! $gevi'y"
52+ call assert_equal (' bcde' , @" )
5053 set selection &vim
5154 bw !
5255endfunc
Original file line number Diff line number Diff line change @@ -741,6 +741,8 @@ static char *(features[]) =
741741
742742static int included_patches [] =
743743{ /* Add new patch number below this line */
744+ /**/
745+ 2314 ,
744746/**/
745747 2313 ,
746748/**/
You can’t perform that action at this time.
0 commit comments