File tree 3 files changed +12
-2
lines changed
3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -857,8 +857,9 @@ edit(
857
857
858
858
/* Pressing CTRL-Y selects the current match. When
859
859
* compl_enter_selects is set the Enter key does the same. */
860
- if (c == Ctrl_Y || (compl_enter_selects
861
- && (c == CAR || c == K_KENTER || c == NL )))
860
+ if ((c == Ctrl_Y || (compl_enter_selects
861
+ && (c == CAR || c == K_KENTER || c == NL )))
862
+ && stop_arrow () == OK )
862
863
{
863
864
ins_compl_delete ();
864
865
ins_compl_insert (FALSE);
Original file line number Diff line number Diff line change @@ -420,6 +420,13 @@ func Test_complete_no_undo()
420
420
call feedkeys (" u" , ' xt' )
421
421
call assert_equal (' ' , getline (2 ))
422
422
423
+ call feedkeys (" ibbb\<Esc> 0" , ' xt' )
424
+ call assert_equal (' bbb' , getline (2 ))
425
+ call feedkeys (" A\<Right>\<Down>\<CR>\<Esc> " , ' xt' )
426
+ call assert_equal (' January' , getline (2 ))
427
+ call feedkeys (" u" , ' xt' )
428
+ call assert_equal (' bbb' , getline (2 ))
429
+
423
430
iunmap <Right>
424
431
set completeopt &
425
432
q !
Original file line number Diff line number Diff line change @@ -779,6 +779,8 @@ static char *(features[]) =
779
779
780
780
static int included_patches [] =
781
781
{ /* Add new patch number below this line */
782
+ /**/
783
+ 42 ,
782
784
/**/
783
785
41 ,
784
786
/**/
You can’t perform that action at this time.
0 commit comments