Commit 7335e61a authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(x_produce_glyphs): Calculate tab width by

FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
parent 7e2d9efd
......@@ -19163,14 +19163,14 @@ x_produce_glyphs (it)
}
else if (it->char_to_display == '\t')
{
int tab_width = it->tab_width * FRAME_COLUMN_WIDTH (it->f);
int tab_width = it->tab_width * FRAME_SPACE_WIDTH (it->f);
int x = it->current_x + it->continuation_lines_width;
int next_tab_x = ((1 + x + tab_width - 1) / tab_width) * tab_width;
 
/* If the distance from the current position to the next tab
stop is less than a canonical character width, use the
stop is less than a space character width, use the
tab stop after that. */
if (next_tab_x - x < FRAME_COLUMN_WIDTH (it->f))
if (next_tab_x - x < FRAME_SPACE_WIDTH (it->f))
next_tab_x += tab_width;
 
it->pixel_width = next_tab_x - x;
......
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