projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1684e25
)
Fix cursor-in-echo-area on TTY frames
author
Eli Zaretskii
<eliz@gnu.org>
Tue, 31 Jan 2023 16:03:28 +0000
(18:03 +0200)
committer
Eli Zaretskii
<eliz@gnu.org>
Tue, 31 Jan 2023 16:03:28 +0000
(18:03 +0200)
* src/dispnew.c (update_frame_1): Fix off-by-one error when
positioning the cursor in the echo-area. (Bug#61184)
src/dispnew.c
patch
|
blob
|
history
diff --git
a/src/dispnew.c
b/src/dispnew.c
index a0a37acb80450c9d770775b2e200d16464e9d2d6..87ec83acdf37d6040aa9812c8a09e815e623d1df 100644
(file)
--- a/
src/dispnew.c
+++ b/
src/dispnew.c
@@
-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))
{