aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2001-01-18 12:14:48 +0000
committerKenichi Handa2001-01-18 12:14:48 +0000
commit9299cb15209728712e23eeddf6c7b158a48e2606 (patch)
treef67262951d110bb7ad81db851522a447b1d4c165 /src
parentbb3a3b5034af77421ff9390056d462bd58b4a40c (diff)
downloademacs-9299cb15209728712e23eeddf6c7b158a48e2606.tar.gz
emacs-9299cb15209728712e23eeddf6c7b158a48e2606.zip
(display_string): Fix previous change.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 00e325b3251..6ca639bcbfa 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -13790,14 +13790,18 @@ display_string (string, lisp_string, face_string, face_string_pos,
13790 { 13790 {
13791 int i, n; 13791 int i, n;
13792 13792
13793 for (i = row->used[TEXT_AREA] - 1; i > 0; --i) 13793 if (it->current_x > it->last_visible_x)
13794 if (!CHAR_GLYPH_PADDING_P (row->glyphs[TEXT_AREA][i]))
13795 break;
13796 for (n = row->used[TEXT_AREA]; i < n; ++i)
13797 { 13794 {
13798 row->used[TEXT_AREA] = i; 13795 for (i = row->used[TEXT_AREA] - 1; i > 0; --i)
13799 produce_special_glyphs (it, IT_TRUNCATION); 13796 if (!CHAR_GLYPH_PADDING_P (row->glyphs[TEXT_AREA][i]))
13797 break;
13798 for (n = row->used[TEXT_AREA]; i < n; ++i)
13799 {
13800 row->used[TEXT_AREA] = i;
13801 produce_special_glyphs (it, IT_TRUNCATION);
13802 }
13800 } 13803 }
13804 produce_special_glyphs (it, IT_TRUNCATION);
13801 } 13805 }
13802 it->glyph_row->truncated_on_right_p = 1; 13806 it->glyph_row->truncated_on_right_p = 1;
13803 } 13807 }