]> git.eshelyaron.com Git - emacs.git/commit
Fix movement to the left in picture-mode
authorEli Zaretskii <eliz@gnu.org>
Sun, 10 Nov 2024 08:56:40 +0000 (10:56 +0200)
committerEshel Yaron <me@eshelyaron.com>
Fri, 15 Nov 2024 12:40:45 +0000 (13:40 +0100)
commit9424ad7232310d2e19c13b962db2ee5626850ddc
treef77bee6c5d58f6e484acefa0631a33bfef43791a
parent5040fda7783193eb28d795436f2aadfd076f7e12
Fix movement to the left in picture-mode

* lisp/textmodes/picture.el (picture-insert): Measure width by
counting columns on display, not by using 'string-width', because
the latter is inaccurate when TABs are involved.  (Bug#74255)

(cherry picked from commit 7dabfe9465c623043e4ea1abe618a6169c155d04)
lisp/textmodes/picture.el