aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-06-04 21:51:59 +0000
committerRichard M. Stallman1996-06-04 21:51:59 +0000
commitc27f1e01191bbefe0263525f8124250db3b2bf24 (patch)
treed9968c4831a4e4af65523333a7b3ec131731c332
parent8a5a6d3e6dc8279b42f3a04d5bab840e9106937d (diff)
downloademacs-c27f1e01191bbefe0263525f8124250db3b2bf24.tar.gz
emacs-c27f1e01191bbefe0263525f8124250db3b2bf24.zip
(xterm-mouse-event): Adjust for minibuffer prompt width.
-rw-r--r--lisp/xt-mouse.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/xt-mouse.el b/lisp/xt-mouse.el
index 87cb8092495..1564034cc7f 100644
--- a/lisp/xt-mouse.el
+++ b/lisp/xt-mouse.el
@@ -124,6 +124,10 @@
124 (goto-char (window-start window)) 124 (goto-char (window-start window))
125 (move-to-window-line (cdr where)) 125 (move-to-window-line (cdr where))
126 (move-to-column (+ (car where) (current-column) 126 (move-to-column (+ (car where) (current-column)
127 (if (string-match "\\` \\*Minibuf"
128 (buffer-name))
129 (- (minibuffer-prompt-width))
130 0)
127 (max 0 (1- (window-hscroll))))) 131 (max 0 (1- (window-hscroll)))))
128 (point)) 132 (point))
129 where)) 133 where))