]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.367 v7.4.367
authorBram Moolenaar <Bram@vim.org>
Wed, 16 Jul 2014 12:42:46 +0000 (14:42 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 16 Jul 2014 12:42:46 +0000 (14:42 +0200)
Problem:    Other solution for redrawing after completion.
Solution:   Schedule a window redraw instead of just clearing the command
            line. (Jacob Niehus)

src/edit.c
src/version.c

index 241707f63971169e0314ce163f13e65a24a6ef44..f0d630a054e98464b5839f44139ee65951ce1b55 100644 (file)
@@ -3854,7 +3854,8 @@ ins_compl_prep(c)
            ins_compl_free();
            compl_started = FALSE;
            compl_matches = 0;
-           msg_clr_cmdline();  /* necessary for "noshowmode" */
+           if (!shortmess(SHM_COMPLETIONMENU))
+               msg_clr_cmdline();      /* necessary for "noshowmode" */
            ctrl_x_mode = 0;
            compl_enter_selects = FALSE;
            if (edit_submode != NULL)
@@ -4591,7 +4592,10 @@ ins_compl_delete()
      */
     i = compl_col + (compl_cont_status & CONT_ADDING ? compl_length : 0);
     backspace_until_column(i);
+
+    /* Not sure what is still valid, better redraw everything. */
     changed_cline_bef_curs();
+    redraw_curbuf_later(NOT_VALID);
 }
 
 /* Insert the new text being completed. */
index ea048b7f818d59b14797833bdda5dece61b0029c..1e031cb4de5c8d613d0a754485b022b4e2632d37 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    367,
 /**/
     366,
 /**/