aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2010-05-01 13:49:09 +0300
committerEli Zaretskii2010-05-01 13:49:09 +0300
commit017ea8192415cbd091cd53075b168fa702c3b922 (patch)
tree8fcb414a5723d034f76f1f60353ef2ef591f441a /src
parent59ca28de83fdc18a1d0c06aec7173ef2de3aabac (diff)
downloademacs-017ea8192415cbd091cd53075b168fa702c3b922.tar.gz
emacs-017ea8192415cbd091cd53075b168fa702c3b922.zip
Fix display of R2L continued lines in partial-width windows on a TTY.
xdisp.c: (extend_face_to_end_of_line): In almost-filled rows, extend only if the row is R2L and not continued.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/xdisp.c9
2 files changed, 9 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 13b2a29e74d..a5548ff16fc 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -2,6 +2,8 @@
2 2
3 * xdisp.c (find_row_end): New function, refactored from display_line. 3 * xdisp.c (find_row_end): New function, refactored from display_line.
4 (display_line): Use it. 4 (display_line): Use it.
5 (extend_face_to_end_of_line): In almost-filled rows, extend only
6 if the row is R2L and not continued.
5 7
62010-04-27 Eli Zaretskii <eliz@gnu.org> 82010-04-27 Eli Zaretskii <eliz@gnu.org>
7 9
diff --git a/src/xdisp.c b/src/xdisp.c
index 017aa690023..45e6b83ec29 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -16948,8 +16948,13 @@ extend_face_to_end_of_line (it)
16948 16948
16949 /* If line is already filled, do nothing. Non window-system frames 16949 /* If line is already filled, do nothing. Non window-system frames
16950 get a grace of one more ``pixel'' because their characters are 16950 get a grace of one more ``pixel'' because their characters are
16951 1-``pixel'' wide, so they hit the equality too early. */ 16951 1-``pixel'' wide, so they hit the equality too early. This grace
16952 if (it->current_x >= it->last_visible_x + !FRAME_WINDOW_P (f)) 16952 is needed only for R2L rows that are not continued, to produce
16953 one extra blank where we could display the cursor. */
16954 if (it->current_x >= it->last_visible_x
16955 + (!FRAME_WINDOW_P (f)
16956 && it->glyph_row->reversed_p
16957 && !it->glyph_row->continued_p))
16953 return; 16958 return;
16954 16959
16955 /* Face extension extends the background and box of IT->face_id 16960 /* Face extension extends the background and box of IT->face_id