mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Fix dragging dividers in terminal Emacs when there's margins
* lisp/mouse.el (mouse-drag-line): Do the right thing in the presence of margins (bug#41156). (mouse-drag-line): Bind left-margin/right-margin in the map, too.
This commit is contained in:
parent
17dcc54db4
commit
c62100465e
1 changed files with 4 additions and 2 deletions
|
|
@ -415,7 +415,7 @@ must be one of the symbols `header', `mode', or `vertical'."
|
|||
(when (window-live-p (setq posn-window (posn-window start)))
|
||||
;; Add left edge of `posn-window' to `position'.
|
||||
(setq position (+ (window-pixel-left posn-window) position))
|
||||
(unless (nth 1 start)
|
||||
(unless (posn-area start)
|
||||
;; Add width of objects on the left of the text area to
|
||||
;; `position'.
|
||||
(when (eq (window-current-scroll-bars posn-window) 'left)
|
||||
|
|
@ -494,9 +494,11 @@ must be one of the symbols `header', `mode', or `vertical'."
|
|||
(define-key map [header-line] map)
|
||||
(define-key map [vertical-line] map)
|
||||
;; ... and some maybe even with a right- or bottom-divider
|
||||
;; prefix.
|
||||
;; or left- or right-margin prefix ...
|
||||
(define-key map [right-divider] map)
|
||||
(define-key map [bottom-divider] map)
|
||||
(define-key map [left-margin] map)
|
||||
(define-key map [right-margin] map)
|
||||
map)
|
||||
t (lambda () (setq track-mouse old-track-mouse)))))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue