diff options
| -rw-r--r-- | lisp/mouse.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el index 592338ad09d..64ee796a681 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -566,7 +566,12 @@ command alters the kill ring or not." | |||
| 566 | (mouse-minibuffer-check click) | 566 | (mouse-minibuffer-check click) |
| 567 | (select-window (posn-window (event-start click))) | 567 | (select-window (posn-window (event-start click))) |
| 568 | (let ((beg (posn-point (event-start click))) | 568 | (let ((beg (posn-point (event-start click))) |
| 569 | (end (posn-point (event-end click))) | 569 | (end |
| 570 | (if (eq (posn-window (event-end click)) (selected-window)) | ||
| 571 | (posn-point (event-end click)) | ||
| 572 | ;; If the mouse ends up in any other window or on the menu | ||
| 573 | ;; bar, use `window-point' of selected window (Bug#23707). | ||
| 574 | (window-point))) | ||
| 570 | (click-count (event-click-count click))) | 575 | (click-count (event-click-count click))) |
| 571 | (let ((drag-start (terminal-parameter nil 'mouse-drag-start))) | 576 | (let ((drag-start (terminal-parameter nil 'mouse-drag-start))) |
| 572 | (when drag-start | 577 | (when drag-start |