comparison src/gui.c @ 973:d607b48414b7 v7.0.099

updated for version 7.0-099
author vimboss
date Sun, 10 Sep 2006 19:39:25 +0000
parents 4fb859cd9ba9
children 9aec644c45dc
comparison
equal deleted inserted replaced
972:decce137e7be 973:d607b48414b7
3732 #ifdef USE_ON_FLY_SCROLL 3732 #ifdef USE_ON_FLY_SCROLL
3733 /* When not allowed to do the scrolling right now, return. */ 3733 /* When not allowed to do the scrolling right now, return. */
3734 if (dont_scroll || input_available()) 3734 if (dont_scroll || input_available())
3735 return; 3735 return;
3736 #endif 3736 #endif
3737 #ifdef FEAT_INS_EXPAND
3738 /* Disallow scrolling the current window when the completion popup menu is
3739 * visible. */
3740 if ((sb->wp == NULL || sb->wp == curwin) && pum_visible())
3741 return;
3742 #endif
3737 3743
3738 #ifdef FEAT_RIGHTLEFT 3744 #ifdef FEAT_RIGHTLEFT
3739 if (sb->wp == NULL && curwin->w_p_rl) 3745 if (sb->wp == NULL && curwin->w_p_rl)
3740 { 3746 {
3741 value = sb->max + 1 - sb->size - value; 3747 value = sb->max + 1 - sb->size - value;
4206 { 4212 {
4207 redraw_win_later(wp, VALID); 4213 redraw_win_later(wp, VALID);
4208 updateWindow(wp); /* update window, status line, and cmdline */ 4214 updateWindow(wp); /* update window, status line, and cmdline */
4209 } 4215 }
4210 4216
4217 #ifdef FEAT_INS_EXPAND
4218 /* May need to redraw the popup menu. */
4219 if (pum_visible())
4220 pum_redraw();
4221 #endif
4222
4211 return (wp == curwin && !equalpos(curwin->w_cursor, old_cursor)); 4223 return (wp == curwin && !equalpos(curwin->w_cursor, old_cursor));
4212 } 4224 }
4213 4225
4214 4226
4215 /* 4227 /*