Commit 653c329b authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(display_line): Fix computation of continuation lines

width for TABs.
parent 7ba51063
2001-10-22 Gerd Moellmann <gerd@gnu.org>
* xdisp.c (display_line): Fix computation of continuation lines
width for TABs.
2001-10-22 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
* xdisp.c (build_desired_tool_bar_string): Remove unused variable
......
......@@ -12934,18 +12934,20 @@ display_line (it)
{
/* Display element draws past the right edge of
the window. Restore positions to values
before the element. The next line starts
with current_x before the glyph that could
not be displayed, so that TAB works right. */
before the element. */
row->used[TEXT_AREA] = n_glyphs_before + i;
/* Display continuation glyphs. */
if (!FRAME_WINDOW_P (it->f))
produce_special_glyphs (it, IT_CONTINUATION);
row->continued_p = 1;
/* A TAB takes us to the right edge of the window. */
if (it->c == '\t')
it->continuation_lines_width += it->last_visible_x;
else
it->continuation_lines_width += x;
it->current_x = x;
it->continuation_lines_width += x;
if (nglyphs > 1 && i > 0)
{
row->ends_in_middle_of_char_p = 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment