From 253c7d2f321ada6e9c7eef7cb693bfa9134dd02d Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Mon, 16 Nov 1992 00:58:49 +0000 Subject: [PATCH] * 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. --- src/xdisp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) register int c; register GLYPH *p1; int hscroll = XINT (w->hscroll); - int tab_width = XINT (current_buffer->tab_width); + int tab_width = XINT (XBUFFER (w->buffer)->tab_width); register GLYPH *start; register GLYPH *end; struct frame_glyphs *desired_glyphs = FRAME_DESIRED_GLYPHS (XFRAME (w->frame));