# HG changeset patch # User Nick Roberts # Date 1102633536 0 # Node ID 7c4d537a17e7bb84934ce88df122447857590659 # Parent 7e9f7b609952a25f5e80ea53b140c6507ee199a7 (xterm-mouse-event): Correct cursor position in a buffer with a display margin. diff -r 7e9f7b609952 -r 7c4d537a17e7 lisp/xt-mouse.el --- 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