emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 49b61405582: Fix cursor-in-echo-area on TTY frames


From: Eli Zaretskii
Subject: emacs-29 49b61405582: Fix cursor-in-echo-area on TTY frames
Date: Tue, 31 Jan 2023 11:04:21 -0500 (EST)

branch: emacs-29
commit 49b61405582edaa1cda05ea37b056d46b423271b
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    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)
---
 src/dispnew.c | 4 ++++
 1 file changed, 4 insertions(+)

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,
            }
          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))
            {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]