changeset 28686:b02f0d91b5aa

(x_produce_glyphs): Remove reference to struct it's prompt_width. Add extra line spacing.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 24 Apr 2000 13:54:04 +0000
parents b4310b6f3b5e
children fd361114073d
files src/xterm.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Mon Apr 24 13:53:16 2000 +0000
+++ b/src/xterm.c	Mon Apr 24 13:54:04 2000 +0000
@@ -1906,9 +1906,7 @@
       else if (it->char_to_display == '\t')
 	{
 	  int tab_width = it->tab_width * CANON_X_UNIT (it->f);
-	  int x = (it->current_x
-		   - it->prompt_width
-		   + it->continuation_lines_width);
+	  int x = it->current_x + it->continuation_lines_width;
 	  int next_tab_x = ((1 + x + tab_width - 1) / tab_width) * tab_width;
       
 	  it->pixel_width = next_tab_x - x;
@@ -2231,6 +2229,8 @@
   if (it->area == TEXT_AREA)
     it->current_x += it->pixel_width;
   
+  it->descent += it->extra_line_spacing;
+  
   it->max_ascent = max (it->max_ascent, it->ascent);
   it->max_descent = max (it->max_descent, it->descent);
   it->max_phys_ascent = max (it->max_phys_ascent, it->phys_ascent);