Commit 4cad38d5 authored by Jim Blandy's avatar Jim Blandy
Browse files

* scroll-bar.el (scroll-bar-set-window-start): Remember that the

	scroll bar numbers reflect the accessible region of the buffer,
	not the entire buffer.
parent 8eda6c51
......@@ -92,7 +92,9 @@ EVENT should be a scroll bar click or drag event."
(set-buffer (window-buffer window))
(goto-char (scroll-bar-scale portion-whole (buffer-size)))
(goto-char (+ (point-min)
(scroll-bar-scale portion-whole
(- (point-max) (point-min)))))
(set-window-start window (point))))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment