]> git.eshelyaron.com Git - emacs.git/commit
Fix off-by-one errors in caret position application
authorPo Lu <luangruo@yahoo.com>
Mon, 10 Jan 2022 00:40:26 +0000 (08:40 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 10 Jan 2022 00:40:26 +0000 (08:40 +0800)
commit0f5f2af51ecc4a67c1b4875d2af4dc19fdb8e392
treec9d5a22cb1d80cbb48000844166fa0a7499105de
parent32f1ec449d760a2a551fb411808d0b4c7d64418c
Fix off-by-one errors in caret position application

* src/gtkutil.c (xg_im_context_preedit_changed):
* src/xfns.c (xic_preedit_caret_callback):
(xic_preedit_draw_callback): Constrain caret position to
SCHARS (arg) - 1.
src/gtkutil.c
src/xfns.c