aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-09-14 20:20:51 +0000
committerGerd Moellmann2000-09-14 20:20:51 +0000
commit2a32b5ea15cb909f640d0aea331164bffd39658d (patch)
treee6165e80327badd5aab7f8e2aba1bf295655e43b /src
parentb4331e964a740262fa9d5d932b23ddca86452952 (diff)
downloademacs-2a32b5ea15cb909f640d0aea331164bffd39658d.tar.gz
emacs-2a32b5ea15cb909f640d0aea331164bffd39658d.zip
(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.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/xterm.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 1cc7e860d12..76ffcd9ffa4 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12000-09-14 Gerd Moellmann <gerd@gnu.org>
2
3 * xterm.c (x_produce_glyphs): If the distance from the current
4 position to the next tab stop is less than a canonical character
5 width, use the tab stop after that.
6
12000-09-14 Dave Love <fx@gnu.org> 72000-09-14 Dave Love <fx@gnu.org>
2 8
3 * buffer.c (alloc_buffer_text): Fix xmalloc call. 9 * buffer.c (alloc_buffer_text): Fix xmalloc call.
diff --git a/src/xterm.c b/src/xterm.c
index f72b20cda50..25e9d223ffb 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -1947,6 +1947,12 @@ x_produce_glyphs (it)
1947 int tab_width = it->tab_width * CANON_X_UNIT (it->f); 1947 int tab_width = it->tab_width * CANON_X_UNIT (it->f);
1948 int x = it->current_x + it->continuation_lines_width; 1948 int x = it->current_x + it->continuation_lines_width;
1949 int next_tab_x = ((1 + x + tab_width - 1) / tab_width) * tab_width; 1949 int next_tab_x = ((1 + x + tab_width - 1) / tab_width) * tab_width;
1950
1951 /* If the distance from the current position to the next tab
1952 stop is less than a canonical character width, use the
1953 tab stop after that. */
1954 if (next_tab_x - x < CANON_X_UNIT (it->f))
1955 next_tab_x += tab_width;
1950 1956
1951 it->pixel_width = next_tab_x - x; 1957 it->pixel_width = next_tab_x - x;
1952 it->nglyphs = 1; 1958 it->nglyphs = 1;