emacs-diffs
[Top][All Lists]
Advanced

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

emacs-27 5aabf2c: Fix display of truncated R2L lines on TTY frames


From: Eli Zaretskii
Subject: emacs-27 5aabf2c: Fix display of truncated R2L lines on TTY frames
Date: Sat, 14 Nov 2020 06:57:52 -0500 (EST)

branch: emacs-27
commit 5aabf2cc7f90a168fda694c6c5360f1df398255c
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Fix display of truncated R2L lines on TTY frames
    
    * src/xdisp.c (extend_face_to_end_of_line): Use a while-loop, not
    a do-while loop, to avoid appending an extra glyph at the end of a
    line that is one character shorter than the window-width.  This is
    needed to fix display of reversed glyph rows that are almost as
    wide as the window, because append_space_for_newline already added
    one space glyph.
---
 src/xdisp.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/xdisp.c b/src/xdisp.c
index 681df09..c9175a6 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -22082,7 +22082,7 @@ extend_face_to_end_of_line (struct it *it)
         updating current_x.  */
       it->current_x = it->glyph_row->used[TEXT_AREA];
 
-      do
+      while (it->current_x <= it->last_visible_x)
        {
          if (it->current_x != indicator_column)
            PRODUCE_GLYPHS (it);
@@ -22100,7 +22100,6 @@ extend_face_to_end_of_line (struct it *it)
              it->c = it->char_to_display = ' ';
            }
        }
-      while (it->current_x <= it->last_visible_x);
 
       if (WINDOW_RIGHT_MARGIN_WIDTH (it->w) > 0
          && (it->glyph_row->used[RIGHT_MARGIN_AREA]



reply via email to

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