From: Geoff Voelker Date: Tue, 2 Sep 1997 19:39:53 +0000 (+0000) Subject: (scroll-bar-maybe-set-window-start): Change window X-Git-Tag: emacs-20.1~265 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=156556942f6c22101788f3b47d11f3ab1b4b8790;p=emacs.git (scroll-bar-maybe-set-window-start): Change window if current start is equal to start of next portion. --- diff --git a/lisp/scroll-bar.el b/lisp/scroll-bar.el index ec02d8c57c9..6a2660626d1 100644 --- a/lisp/scroll-bar.el +++ b/lisp/scroll-bar.el @@ -186,7 +186,7 @@ EVENT should be a scroll bar click or drag event." (setq next-portion-start (max (scroll-bar-drag-position next-portion-whole) (1+ portion-start))) - (if (or (> current-start next-portion-start) + (if (or (>= current-start next-portion-start) (< current-start portion-start)) (set-window-start window portion-start) ;; Always set window start, to ensure scroll bar position is updated.