diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-09-10 19:39:25 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-09-10 19:39:25 +0000 |
commit | 05bb82f9497f4ac9e61da7f88ba78d811b0c5df0 (patch) | |
tree | c9c7f25a825dd75a851175caa8dbe3236ea8a011 /src/gui.c | |
parent | 29b2d2694de14fd48aa47965996645f83859f3c3 (diff) |
updated for version 7.0-099v7.0.099
Diffstat (limited to 'src/gui.c')
-rw-r--r-- | src/gui.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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)); } |