diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-03-07 19:38:54 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-03-07 19:38:54 +0100 |
commit | 3978e08fbee9a1ef6b988cae73e95cb18467733b (patch) | |
tree | e5e21faf0592bf82d1e7c01fbdb604eaa6f3ee91 /src/edit.c | |
parent | db813951c4fc1f91aaaeb4e72d37942e13cb1f0e (diff) | |
download | vim-3978e08fbee9a1ef6b988cae73e95cb18467733b.zip |
updated for version 7.3.854
Problem: After using backspace in insert mode completion, CTRL-N and CTRL-P
do not highlight the right entry. (Olivier Teuliere)
Solution: Set the current item to the shown item after using backspace.
Diffstat (limited to 'src/edit.c')
-rw-r--r-- | src/edit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c index 74bbd9a10..88fd18af1 100644 --- a/src/edit.c +++ b/src/edit.c @@ -3380,6 +3380,9 @@ ins_compl_bs() if (compl_leader != NULL) { ins_compl_new_leader(); + if (compl_shown_match != NULL) + /* Make sure current match is not a hidden item. */ + compl_curr_match = compl_shown_match; return NUL; } return K_BS; |