]> git.eshelyaron.com Git - emacs.git/commit
Fix more single-byte accesses caused by bytepos/charpos confusion
authorPip Cet <pipcet@gmail.com>
Sun, 27 Sep 2020 15:40:07 +0000 (17:40 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 27 Sep 2020 15:40:07 +0000 (17:40 +0200)
commita492013d07c59fab8eb9779924b384181e878a1a
tree5c0c1febc68cf1e0f0cdb047dbee29ef5a8665aa
parent433b6fc53dc9511077ed3a8c1ad130196dedbb55
Fix more single-byte accesses caused by bytepos/charpos confusion

* src/cmds.c (internal_self_insert): Use FETCH_BYTE, not
FETCH_CHAR, for a decremented byte position (bug#41520).

* src/xdisp.c (Fwindow_text_pixel_size, trailing_whitespace_p): Ditto.
src/cmds.c
src/xdisp.c