Mercurial > emacs
changeset 58875:7c4d537a17e7
(xterm-mouse-event): Correct cursor position in a
buffer with a display margin.
author | Nick Roberts <nickrob@snap.net.nz> |
---|---|
date | Thu, 09 Dec 2004 23:05:36 +0000 |
parents | 7e9f7b609952 |
children | a804ec066ee7 |
files | lisp/xt-mouse.el |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/xt-mouse.el Thu Dec 09 23:03:37 2004 +0000 +++ b/lisp/xt-mouse.el Thu Dec 09 23:05:36 2004 +0000 @@ -139,12 +139,13 @@ default-header-line-format) 1 0))) - (move-to-column (+ (car where) (current-column) + (move-to-column (- (+ (car where) (current-column) (if (string-match "\\` \\*Minibuf" (buffer-name)) (- (minibuffer-prompt-width)) 0) - (max 0 (1- (window-hscroll))))) + (max 0 (1- (window-hscroll)))) + left-margin-width)) (point)) where)) (mouse (intern