Mercurial > emacs
changeset 59205:d33c176effbf
(x_produce_glyphs): Calculate tab width by
FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 30 Dec 2004 12:25:28 +0000 |
parents | d0fe8e91ef27 |
children | 77ba45776c58 |
files | src/xdisp.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Thu Dec 30 12:24:39 2004 +0000 +++ b/src/xdisp.c Thu Dec 30 12:25:28 2004 +0000 @@ -19163,14 +19163,14 @@ } 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;