Skip to content

Instantly share code, notes, and snippets.

@mattn
Created August 15, 2013 12: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/6240621 to your computer and use it in GitHub Desktop.
Save mattn/6240621 to your computer and use it in GitHub Desktop.
diff -r 8c8cdda36022 src/popupmnu.c
--- a/src/popupmnu.c Wed Aug 14 14:18:41 2013 +0200
+++ b/src/popupmnu.c Thu Aug 15 21:56:58 2013 +0900
@@ -639,7 +639,6 @@
{
/* Return cursor to where we were */
validate_cursor();
- redraw_later(SOME_VALID);
/* When the preview window was resized we need to
* update the view on the buffer. Only go back to
@@ -653,18 +652,14 @@
/* Update the screen before drawing the popup menu.
* Enable updating the status lines. */
- pum_do_redraw = TRUE;
- update_screen(0);
- pum_do_redraw = FALSE;
+ redraw_win_later(curwin, REDRAW_TOP);
if (!resized && win_valid(curwin_save))
win_enter(curwin_save, TRUE);
/* May need to update the screen again when there are
* autocommands involved. */
- pum_do_redraw = TRUE;
- update_screen(0);
- pum_do_redraw = FALSE;
+ redraw_win_later(curwin, VALID);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment