From: Gerd Moellmann Date: Mon, 24 Apr 2000 13:54:04 +0000 (+0000) Subject: (x_produce_glyphs): Remove reference to struct it's X-Git-Tag: emacs-pretest-21.0.90~4163 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d365f5bb0b02c5dbc4576ef149d127f4d8573c3d;p=emacs.git (x_produce_glyphs): Remove reference to struct it's prompt_width. Add extra line spacing. --- diff --git a/src/xterm.c b/src/xterm.c index f36e1e7761e..0bb64d881b1 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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);