Skip to content

Instantly share code, notes, and snippets.

@mattn
Created June 10, 2013 07:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattn/5747173 to your computer and use it in GitHub Desktop.
Save mattn/5747173 to your computer and use it in GitHub Desktop.
diff -r 198cf88374c8 src/edit.c
--- a/src/edit.c Sun Jun 09 20:51:00 2013 +0200
+++ b/src/edit.c Mon Jun 10 16:57:55 2013 +0900
@@ -2890,8 +2890,14 @@
do_cmdline_cmd((char_u *)"if exists('g:loaded_matchparen')|3match none|endif");
#endif
- /* Update the screen before drawing the popup menu over it. */
- update_screen(0);
+ /* Update status line en before drawing the popup menu over it.
+ * NOTE: No need to call update_screen(0).
+ * update_screen(0) is called when popup is open or closed, resized
+ * already. So while inserting for completion, it don't need to update
+ * whole screen. But cursor should be moved. So just call
+ * redraw_statuslines() here.
+ */
+ redraw_statuslines();
if (compl_match_array == NULL)
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment