diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/xterm.c | 6 |
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 @@ | |||
| 1 | 2000-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 | |||
| 1 | 2000-09-14 Dave Love <fx@gnu.org> | 7 | 2000-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; |