aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/term.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 08be07b117d..2c3075a7044 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12009-04-03 Chong Yidong <cyd@stupidchicken.com>
2
3 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4 so they don't get wider than the window, matching 2006-01-23
5 change to the partner function in xdisp.c (Bug#2800).
6
12009-04-03 Kenichi Handa <handa@m17n.org> 72009-04-03 Kenichi Handa <handa@m17n.org>
2 8
3 * print.c (print_object): Make each lowest sub_char_table start a 9 * print.c (print_object): Make each lowest sub_char_table start a
diff --git a/src/term.c b/src/term.c
index 6d6bfaf412f..1c686eb521c 100644
--- a/src/term.c
+++ b/src/term.c
@@ -1740,6 +1740,10 @@ produce_stretch_glyph (it)
1740 if (width <= 0 && (width < 0 || !zero_width_ok_p)) 1740 if (width <= 0 && (width < 0 || !zero_width_ok_p))
1741 width = 1; 1741 width = 1;
1742 1742
1743 if (width > 0 && it->line_wrap != TRUNCATE
1744 && it->current_x + width > it->last_visible_x)
1745 width = it->last_visible_x - it->current_x - 1;
1746
1743 if (width > 0 && it->glyph_row) 1747 if (width > 0 && it->glyph_row)
1744 { 1748 {
1745 Lisp_Object o_object = it->object; 1749 Lisp_Object o_object = it->object;