(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 87cb809..1564034 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))