diff options
| author | Jim Blandy | 1992-11-16 00:58:49 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-11-16 00:58:49 +0000 |
| commit | 253c7d2f321ada6e9c7eef7cb693bfa9134dd02d (patch) | |
| tree | 409fe6e98be27c2601bce42ef39b2ebac2661907 | |
| parent | 7104f9b06c8901fdc7a92a443050a6f06cd2aeb2 (diff) | |
| download | emacs-253c7d2f321ada6e9c7eef7cb693bfa9134dd02d.tar.gz emacs-253c7d2f321ada6e9c7eef7cb693bfa9134dd02d.zip | |
* xdisp.c (display_string): Use w's buffer's value of
tab-width to display the string, instead of the current buffer's,
which could be anything.
| -rw-r--r-- | src/xdisp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index f59f56b0baf..feeca963016 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -2180,7 +2180,7 @@ display_string (w, vpos, string, hpos, truncate, mincol, maxcol) | |||
| 2180 | register int c; | 2180 | register int c; |
| 2181 | register GLYPH *p1; | 2181 | register GLYPH *p1; |
| 2182 | int hscroll = XINT (w->hscroll); | 2182 | int hscroll = XINT (w->hscroll); |
| 2183 | int tab_width = XINT (current_buffer->tab_width); | 2183 | int tab_width = XINT (XBUFFER (w->buffer)->tab_width); |
| 2184 | register GLYPH *start; | 2184 | register GLYPH *start; |
| 2185 | register GLYPH *end; | 2185 | register GLYPH *end; |
| 2186 | struct frame_glyphs *desired_glyphs = FRAME_DESIRED_GLYPHS (XFRAME (w->frame)); | 2186 | struct frame_glyphs *desired_glyphs = FRAME_DESIRED_GLYPHS (XFRAME (w->frame)); |