]> git.eshelyaron.com Git - emacs.git/commit
Make artist-mode work when display-line-numbers-mode is on
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 7 Oct 2020 03:23:26 +0000 (05:23 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 7 Oct 2020 03:23:26 +0000 (05:23 +0200)
commitc842bd993f343d5dce1fe51fd72cb9aa345eef99
tree1cedfd24091ce27b49d65afa51b1c2b8e4d4032b
parent95c7aa96af9f5f92d69bb856be8632e4a1ca15f2
Make artist-mode work when display-line-numbers-mode is on

* lisp/textmodes/artist.el (artist--adjust-x): New function.
(artist-mouse-draw-continously, artist-mouse-draw-poly)
(artist-mouse-draw-1point, artist-mouse-draw-2points): Use it to
take `display-line-numbers-mode' widths into account.
lisp/textmodes/artist.el