1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-01 09:51:22 -08:00

Fix cursor-in-echo-area on TTY frames

* src/dispnew.c (update_frame_1): Fix off-by-one error when
positioning the cursor in the echo-area.  (Bug#61184)
This commit is contained in:
Eli Zaretskii 2023-01-31 18:03:28 +02:00
parent 1684e254a3
commit 49b6140558

View file

@ -5009,6 +5009,10 @@ update_frame_1 (struct frame *f, bool force_p, bool inhibit_id_p,
}
while (row > top && col == 0);
/* We exit the loop with COL at the glyph _after_ the last one. */
if (col > 0)
col--;
/* Make sure COL is not out of range. */
if (col >= FRAME_CURSOR_X_LIMIT (f))
{