]> git.eshelyaron.com Git - emacs.git/commitdiff
(xterm-mouse-event): Adjust for minibuffer prompt width.
authorRichard M. Stallman <rms@gnu.org>
Tue, 4 Jun 1996 21:51:59 +0000 (21:51 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 4 Jun 1996 21:51:59 +0000 (21:51 +0000)
lisp/xt-mouse.el

index 87cb809249547ea98ff20576fffbb88b58a894a2..1564034cc7fe68fb8a0e64964ffd91171ffed07c 100644 (file)
                    (goto-char (window-start window))
                    (move-to-window-line  (cdr where))
                    (move-to-column (+ (car where) (current-column)
+                                      (if (string-match "\\` \\*Minibuf"
+                                                        (buffer-name))
+                                          (- (minibuffer-prompt-width))
+                                        0)
                                       (max 0 (1- (window-hscroll)))))
                    (point))
                where))