]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.854 v7.3.854
authorBram Moolenaar <Bram@vim.org>
Thu, 7 Mar 2013 18:38:54 +0000 (19:38 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 7 Mar 2013 18:38:54 +0000 (19:38 +0100)
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.

src/edit.c
src/version.c

index 74bbd9a109bebae4012d31e8e70e40e4e959596d..88fd18af1d1cbc2b4639e123d879f5e676f0e5c2 100644 (file)
@@ -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;
index b6e4f3894a11fb1c0768792d352178fffbc94b29..7c1e274ef1d4bb0b801a34884eb93ff6b0a1b57a 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    854,
 /**/
     853,
 /**/