Mercurial > vim
changeset 1476:ea1a2950ed16 v7.1.191
updated for version 7.1-191
author | vimboss |
---|---|
date | Thu, 03 Jan 2008 15:15:07 +0000 |
parents | c87ce0b2ee2a |
children | 2951f28a9bd3 |
files | src/gui.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gui.c +++ b/src/gui.c @@ -3734,8 +3734,10 @@ gui_drag_scrollbar(sb, value, still_drag sb->value = value; #ifdef USE_ON_FLY_SCROLL - /* When not allowed to do the scrolling right now, return. */ - if (dont_scroll || input_available()) + /* When not allowed to do the scrolling right now, return. + * This also checked input_available(), but that causes the first click in + * a scrollbar to be ignored when Vim doesn't have focus. */ + if (dont_scroll) return; #endif #ifdef FEAT_INS_EXPAND