aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2023-01-31 18:03:28 +0200
committerEli Zaretskii2023-01-31 18:03:28 +0200
commit49b61405582edaa1cda05ea37b056d46b423271b (patch)
tree0708020b0cedbcc8961f212ea2c8610b4e253ab5 /src
parent1684e254a3b95b474753275fa9bfc2567a83b2fa (diff)
downloademacs-49b61405582edaa1cda05ea37b056d46b423271b.tar.gz
emacs-49b61405582edaa1cda05ea37b056d46b423271b.zip
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)
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index a0a37acb804..87ec83acdf3 100644
--- 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,
5009 } 5009 }
5010 while (row > top && col == 0); 5010 while (row > top && col == 0);
5011 5011
5012 /* We exit the loop with COL at the glyph _after_ the last one. */
5013 if (col > 0)
5014 col--;
5015
5012 /* Make sure COL is not out of range. */ 5016 /* Make sure COL is not out of range. */
5013 if (col >= FRAME_CURSOR_X_LIMIT (f)) 5017 if (col >= FRAME_CURSOR_X_LIMIT (f))
5014 { 5018 {