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 | f9b8264e73b7960cb38a10fbca21e82fc327d294 (patch) | |
tree | 0bc01ea0000eea0df2112406a2b4436cd866ef8b | |
parent | cfba666e3ddd7b41de7ef7253f2fc0e5de107941 (diff) | |
download | vim-7.3.854.tar.gz |
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.
-rw-r--r-- | src/edit.c | 3 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 0 deletions
@@ -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; diff --git a/src/version.c b/src/version.c index b6e4f389..7c1e274e 100644 --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 854, +/**/ 853, /**/ 852, |