Created
June 10, 2013 07:57
-
-
Save mattn/5747173 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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