changeset 1600:775c2ab9800f

* 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.
author Jim Blandy <jimb@redhat.com>
date Mon, 16 Nov 1992 00:58:49 +0000
parents 6f61e80e319b
children a371ec79bc31
files src/xdisp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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));