# HG changeset patch # User Jim Blandy # Date 721875529 0 # Node ID 775c2ab9800f0bcfba7ef1ed792de9233e1d276b # Parent 6f61e80e319b61be2b9af731aa0f173ac05e8c05 * 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. diff -r 6f61e80e319b -r 775c2ab9800f src/xdisp.c --- a/src/xdisp.c Mon Nov 16 00:58:28 1992 +0000 +++ b/src/xdisp.c Mon Nov 16 00:58:49 1992 +0000 @@ -2180,7 +2180,7 @@ 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));