diff src/popupmnu.c @ 6043:a97e5b9dbc26 v7.4.361

updated for version 7.4.361 Problem: Lots of flickering when filling the preview window for 'omnifunc'. Solution: Disable redrawing. (Hirohito Higashi)
author Bram Moolenaar <bram@vim.org>
date Wed, 09 Jul 2014 19:58:24 +0200
parents d563839a9be0
children 2f02675bc4b0
line wrap: on
line diff
--- a/src/popupmnu.c
+++ b/src/popupmnu.c
@@ -567,7 +567,9 @@ pum_set_selected(n, repeat)
 	    g_do_tagpreview = 3;
 	    if (p_pvh > 0 && p_pvh < g_do_tagpreview)
 		g_do_tagpreview = p_pvh;
+	    ++RedrawingDisabled;
 	    resized = prepare_tagpreview(FALSE);
+	    --RedrawingDisabled;
 	    g_do_tagpreview = 0;
 
 	    if (curwin->w_p_pvw)