diff src/term.c @ 102831:1f0beb33697b

* 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).
author Chong Yidong <cyd@stupidchicken.com>
date Fri, 03 Apr 2009 15:10:19 +0000
parents d69c45eb83b1
children 997f1f1cac08
line wrap: on
line diff
--- a/src/term.c	Fri Apr 03 06:26:50 2009 +0000
+++ b/src/term.c	Fri Apr 03 15:10:19 2009 +0000
@@ -1740,6 +1740,10 @@
   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;