]> git.eshelyaron.com Git - emacs.git/commitdiff
(scroll-bar-maybe-set-window-start): Always set
authorKarl Heuer <kwzh@gnu.org>
Tue, 21 May 1996 14:40:27 +0000 (14:40 +0000)
committerKarl Heuer <kwzh@gnu.org>
Tue, 21 May 1996 14:40:27 +0000 (14:40 +0000)
window start, to ensure scroll bar position is updated.

lisp/scroll-bar.el

index 98b90856574dfdba841bfb7b224e36eb169b9fe0..ec0f71649435034e7173160cd713f5061b34647c 100644 (file)
@@ -144,7 +144,9 @@ EVENT should be a scroll bar click or drag event."
                                (1+ portion-start)))
       (if (or (> current-start next-portion-start)
              (< current-start portion-start))
-         (set-window-start window portion-start)))))
+         (set-window-start window portion-start)
+       ;; Always set window start, to ensure scroll bar position is updated.
+       (set-window-start window current-start)))))
 
 ;; Scroll the window to the proper position for EVENT.
 (defun scroll-bar-drag-1 (event)