]> git.eshelyaron.com Git - emacs.git/commit
Improved mouse rectangle selection robustness (bug#38013)
authorMattias Engdegård <mattiase@acm.org>
Sat, 30 Nov 2019 10:37:04 +0000 (11:37 +0100)
committerMattias Engdegård <mattiase@acm.org>
Sat, 30 Nov 2019 21:43:00 +0000 (22:43 +0100)
commit293eb3259883c0b8465926a850b9ca7131e70074
tree876864be00f489aa63cc4f5df3e794344b4043df
parentdfbbbf319e4e357c82a79944090c949f3c5299c3
Improved mouse rectangle selection robustness (bug#38013)

Make the rectangular selection work better with
display-line-numbers-mode and side-by-side windows.
Also make the mouse track the text cursor in a consistent way.

* lisp/mouse.el (mouse--rectangle-track-cursor): Added constant.
(mouse-drag-region-rectangle): Take the line-number width into
account, and use window-relative columns.  Track either the cursor or
rectangle corner with more care.
lisp/mouse.el