]> git.eshelyaron.com Git - emacs.git/commitdiff
(xterm-mouse-event): Correct cursor position in a
authorNick Roberts <nickrob@snap.net.nz>
Thu, 9 Dec 2004 23:05:36 +0000 (23:05 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Thu, 9 Dec 2004 23:05:36 +0000 (23:05 +0000)
buffer with a display margin.

lisp/xt-mouse.el

index a261d3d36c8ec87e6fe5c7c757eea586cd5dacfe..19b58475a93403f8897da1f508db0fcb1a4ac5bf 100644 (file)
                                                  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