diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2009-04-03 15:10:19 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2009-04-03 15:10:19 +0000 |
commit | e31b58fc989a1ad1e4a27f925bbecd36e9ecd46f (patch) | |
tree | fce4c732d4c0107ef34a19a98d41c2b1ae5b110c /src/term.c | |
parent | 10cd09810becf496ea3e0c280445b12af25e4b2d (diff) | |
download | emacs-e31b58fc989a1ad1e4a27f925bbecd36e9ecd46f.tar.gz |
* 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).
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) 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; |