From 156556942f6c22101788f3b47d11f3ab1b4b8790 Mon Sep 17 00:00:00 2001 From: Geoff Voelker Date: Tue, 2 Sep 1997 19:39:53 +0000 Subject: [PATCH] (scroll-bar-maybe-set-window-start): Change window if current start is equal to start of next portion. --- lisp/scroll-bar.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.39.2