]> git.eshelyaron.com Git - emacs.git/commit
Minor cleanup of code in insdel.c
authorEli Zaretskii <eliz@gnu.org>
Thu, 18 Jul 2024 09:59:28 +0000 (12:59 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 22 Jul 2024 10:31:43 +0000 (12:31 +0200)
commit85c0ed4a0f5fbce07544c8c03885623299567c19
tree1d948be44d8c8af805bfd444df91a8e493114279
parentaa7a25ac1a092a061d701fcf7ecdb821c22ccf5e
Minor cleanup of code in insdel.c

* src/insdel.c (del_range_2): Update *_BYTE variables _after_
updating the corresponding character values.  This follows what we
do everywhere else, and allows to put a watchpoint on, say, Z_BYTE
to check consistency between the character and byte counts.  See
bug#72165 for one situation where it is useful.

(cherry picked from commit a90a1ed527e89cf26737b6a123070c55c3118923)
src/insdel.c