]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_produce_glyphs): Remove reference to struct it's
authorGerd Moellmann <gerd@gnu.org>
Mon, 24 Apr 2000 13:54:04 +0000 (13:54 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 24 Apr 2000 13:54:04 +0000 (13:54 +0000)
prompt_width.  Add extra line spacing.

src/xterm.c

index f36e1e7761eca7e33ced5dbd15ee9335eda96882..0bb64d881b1b05e7dd8b34f91de5cba1047021c3 100644 (file)
@@ -1906,9 +1906,7 @@ x_produce_glyphs (it)
       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 @@ x_produce_glyphs (it)
   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);