+52
-0
lines changedFilter options
+52
-0
lines changed Original file line number Diff line number Diff line change
@@ -1093,6 +1093,8 @@ static int insert_handle_key(InsertState *s)
1093
1093
// equivalent to selecting the item with a typed key.
1094
1094
if (pum_want.active) {
1095
1095
if (pum_visible()) {
1096
+
// Set this to NULL so that ins_complete() will update the message.
1097
+
edit_submode_extra = NULL;
1096
1098
insert_do_complete(s);
1097
1099
if (pum_want.finish) {
1098
1100
// accept the item and stop completion
Original file line number Diff line number Diff line change
@@ -26,6 +26,7 @@ describe('ui/ext_popupmenu', function()
26
26
[5] = {bold = true, foreground = Screen.colors.SeaGreen},
27
27
[6] = {background = Screen.colors.WebGray},
28
28
[7] = {background = Screen.colors.LightMagenta},
29
+
[8] = {foreground = Screen.colors.Red},
29
30
})
30
31
source([[
31
32
function! TestComplete() abort
@@ -426,6 +427,55 @@ describe('ui/ext_popupmenu', function()
426
427
{1:~ }|
427
428
{2:-- INSERT --} |
428
429
]])
430
+
431
+
feed('<esc>ddiaa bb cc<cr>')
432
+
feed('<c-x><c-n>')
433
+
screen:expect([[
434
+
aa bb cc |
435
+
aa^ |
436
+
{6:aa }{1: }|
437
+
{7:bb }{1: }|
438
+
{7:cc }{1: }|
439
+
{1:~ }|
440
+
{1:~ }|
441
+
{2:-- Keyword Local completion (^N^P) }{5:match 1 of 3} |
442
+
]])
443
+
444
+
feed('<f1>')
445
+
screen:expect([[
446
+
aa bb cc |
447
+
cc^ |
448
+
{7:aa }{1: }|
449
+
{7:bb }{1: }|
450
+
{6:cc }{1: }|
451
+
{1:~ }|
452
+
{1:~ }|
453
+
{2:-- Keyword Local completion (^N^P) }{5:match 3 of 3} |
454
+
]])
455
+
456
+
feed('<f2>')
457
+
screen:expect([[
458
+
aa bb cc |
459
+
cc^ |
460
+
{7:aa }{1: }|
461
+
{7:bb }{1: }|
462
+
{7:cc }{1: }|
463
+
{1:~ }|
464
+
{1:~ }|
465
+
{2:-- Keyword Local completion (^N^P) }{8:Back at original} |
466
+
]])
467
+
468
+
feed('<f3>')
469
+
screen:expect([[
470
+
aa bb cc |
471
+
bb^ |
472
+
{1:~ }|
473
+
{1:~ }|
474
+
{1:~ }|
475
+
{1:~ }|
476
+
{1:~ }|
477
+
{2:-- INSERT --} |
478
+
]])
429
479
end)
430
480
431
481
local function source_complete_month()
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4