Commit d5221487 authored by Chong Yidong's avatar Chong Yidong
Browse files

* term.c (produce_stretch_glyph): Reduce width of stretch glyphs

so they don't get wider than the window, matching 2006-01-23
change to the partner function in xdisp.c (Bug#2800).
parent 223509a3
2009-04-03 Chong Yidong <cyd@stupidchicken.com>
* term.c (produce_stretch_glyph): Reduce width of stretch glyphs
so they don't get wider than the window, matching 2006-01-23
change to the partner function in xdisp.c (Bug#2800).
2009-04-03 Kenichi Handa <handa@m17n.org>
* print.c (print_object): Make each lowest sub_char_table start a
......
......@@ -1740,6 +1740,10 @@ produce_stretch_glyph (it)
if (width <= 0 && (width < 0 || !zero_width_ok_p))
width = 1;
if (width > 0 && it->line_wrap != TRUNCATE
&& it->current_x + width > it->last_visible_x)
width = it->last_visible_x - it->current_x - 1;
if (width > 0 && it->glyph_row)
{
Lisp_Object o_object = it->object;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment