Mercurial > emacs
changeset 31614:410df09028db
(x_produce_glyphs): If the distance from the current
position to the next tab stop is less than a canonical character
width, use the tab stop after that.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 14 Sep 2000 20:20:34 +0000 |
parents | b8cbad226f35 |
children | ac11164b9357 |
files | src/xterm.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Thu Sep 14 19:47:28 2000 +0000 +++ b/src/xterm.c Thu Sep 14 20:20:34 2000 +0000 @@ -1947,6 +1947,12 @@ int tab_width = it->tab_width * CANON_X_UNIT (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 + tab stop after that. */ + if (next_tab_x - x < CANON_X_UNIT (it->f)) + next_tab_x += tab_width; it->pixel_width = next_tab_x - x; it->nglyphs = 1;