Mercurial > emacs
changeset 7637:cc55e77a9819
(mouse-split-window-vertically): Treat scroll bar events just like others.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 22 May 1994 20:56:11 +0000 |
parents | 83dba60657ef |
children | fb6479579c0b |
files | lisp/mouse.el |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/mouse.el Sun May 22 20:55:15 1994 +0000 +++ b/lisp/mouse.el Sun May 22 20:56:11 1994 +0000 @@ -89,10 +89,7 @@ (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)