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:
parent
1684e254a3
commit
49b6140558
1 changed files with 4 additions and 0 deletions
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue