summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-05-22 20:56:11 +0000
committerRichard M. Stallman <rms@gnu.org>1994-05-22 20:56:11 +0000
commit85d6b80b26ff80a3df4d0a44d282f73872f5c16e (patch)
tree4589a39f2fd3c06fcd67dbf9373443b1a0c72d89 /lisp
parented627e08bdc16618e83941a1e3526434319fccb9 (diff)
downloademacs-85d6b80b26ff80a3df4d0a44d282f73872f5c16e.tar.gz
(mouse-split-window-vertically): Treat scroll bar events just like others.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mouse.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 2cceabab2f7..052d6ec01ba 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -89,10 +89,7 @@ This command must be bound to a mouse click."
(mouse-minibuffer-check click)
(let ((start (event-start click)))
(select-window (posn-window start))
- (let ((new-height (if (eq (posn-point start) 'vertical-scroll-bar)
- (scroll-bar-scale (posn-col-row start)
- (1- (window-height)))
- (1+ (cdr (posn-col-row (event-end click))))))
+ (let ((new-height (1+ (cdr (posn-col-row (event-end click)))))
(first-line window-min-height)
(last-line (- (window-height) window-min-height)))
(if (< last-line first-line)