From 05bb82f9497f4ac9e61da7f88ba78d811b0c5df0 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 10 Sep 2006 19:39:25 +0000 Subject: updated for version 7.0-099 --- src/gui.c | 12 ++++++++++++ src/version.c | 2 ++ 2 files changed, 14 insertions(+) diff --git a/src/gui.c b/src/gui.c index 02a14b90d..b8236c6ab 100644 --- a/src/gui.c +++ b/src/gui.c @@ -3734,6 +3734,12 @@ gui_drag_scrollbar(sb, value, still_dragging) if (dont_scroll || input_available()) return; #endif +#ifdef FEAT_INS_EXPAND + /* Disallow scrolling the current window when the completion popup menu is + * visible. */ + if ((sb->wp == NULL || sb->wp == curwin) && pum_visible()) + return; +#endif #ifdef FEAT_RIGHTLEFT if (sb->wp == NULL && curwin->w_p_rl) @@ -4208,6 +4214,12 @@ gui_do_scroll() updateWindow(wp); /* update window, status line, and cmdline */ } +#ifdef FEAT_INS_EXPAND + /* May need to redraw the popup menu. */ + if (pum_visible()) + pum_redraw(); +#endif + return (wp == curwin && !equalpos(curwin->w_cursor, old_cursor)); } diff --git a/src/version.c b/src/version.c index acff8abd7..33f8f1ad0 100644 --- a/src/version.c +++ b/src/version.c @@ -666,6 +666,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 99, /**/ 98, /**/ -- cgit v1.2.1