comparison src/xdisp.c @ 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 00109911b040
children a532c5a23984
comparison
equal deleted inserted replaced
1599:6f61e80e319b 1600:775c2ab9800f
2178 int mincol, maxcol; 2178 int mincol, maxcol;
2179 { 2179 {
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));
2187 GLYPH *p1start = desired_glyphs->glyphs[vpos] + hpos; 2187 GLYPH *p1start = desired_glyphs->glyphs[vpos] + hpos;
2188 int window_width = XFASTINT (w->width); 2188 int window_width = XFASTINT (w->width);