From 7335e61a83e1b1e27d2eecf74f38e75a1674326d Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 30 Dec 2004 12:25:28 +0000 Subject: [PATCH] (x_produce_glyphs): Calculate tab width by FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH. --- src/xdisp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index d2f6b2234c7..faa0dfc2123 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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; -- 2.39.2