diff options
| author | Nick Roberts | 2004-12-09 23:05:36 +0000 |
|---|---|---|
| committer | Nick Roberts | 2004-12-09 23:05:36 +0000 |
| commit | 21fa4a775ba51f585f72582ac0ef5a7b843ce11e (patch) | |
| tree | 86d725b93d7ada11205b3720fe0fdae5b28cd3e2 | |
| parent | 06cc57dbdcf082f4e368b6a98cc21bd56083af47 (diff) | |
| download | emacs-21fa4a775ba51f585f72582ac0ef5a7b843ce11e.tar.gz emacs-21fa4a775ba51f585f72582ac0ef5a7b843ce11e.zip | |
(xterm-mouse-event): Correct cursor position in a
buffer with a display margin.
| -rw-r--r-- | lisp/xt-mouse.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/xt-mouse.el b/lisp/xt-mouse.el index a261d3d36c8..19b58475a93 100644 --- a/lisp/xt-mouse.el +++ b/lisp/xt-mouse.el | |||
| @@ -139,12 +139,13 @@ | |||
| 139 | default-header-line-format) | 139 | default-header-line-format) |
| 140 | 1 | 140 | 1 |
| 141 | 0))) | 141 | 0))) |
| 142 | (move-to-column (+ (car where) (current-column) | 142 | (move-to-column (- (+ (car where) (current-column) |
| 143 | (if (string-match "\\` \\*Minibuf" | 143 | (if (string-match "\\` \\*Minibuf" |
| 144 | (buffer-name)) | 144 | (buffer-name)) |
| 145 | (- (minibuffer-prompt-width)) | 145 | (- (minibuffer-prompt-width)) |
| 146 | 0) | 146 | 0) |
| 147 | (max 0 (1- (window-hscroll))))) | 147 | (max 0 (1- (window-hscroll)))) |
| 148 | left-margin-width)) | ||
| 148 | (point)) | 149 | (point)) |
| 149 | where)) | 150 | where)) |
| 150 | (mouse (intern | 151 | (mouse (intern |