/[emacs]/emacs/src/xdisp.c
ViewVC logotype

Diff of /emacs/src/xdisp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.949 by rms, Tue Dec 28 17:52:51 2004 UTC revision 1.950 by handa, Thu Dec 30 12:25:28 2004 UTC
# Line 19163  x_produce_glyphs (it) Line 19163  x_produce_glyphs (it)
19163          }          }
19164        else if (it->char_to_display == '\t')        else if (it->char_to_display == '\t')
19165          {          {
19166            int tab_width = it->tab_width * FRAME_COLUMN_WIDTH (it->f);            int tab_width = it->tab_width * FRAME_SPACE_WIDTH (it->f);
19167            int x = it->current_x + it->continuation_lines_width;            int x = it->current_x + it->continuation_lines_width;
19168            int next_tab_x = ((1 + x + tab_width - 1) / tab_width) * tab_width;            int next_tab_x = ((1 + x + tab_width - 1) / tab_width) * tab_width;
19169    
19170            /* If the distance from the current position to the next tab            /* If the distance from the current position to the next tab
19171               stop is less than a canonical character width, use the               stop is less than a space character width, use the
19172               tab stop after that.  */               tab stop after that.  */
19173            if (next_tab_x - x < FRAME_COLUMN_WIDTH (it->f))            if (next_tab_x - x < FRAME_SPACE_WIDTH (it->f))
19174              next_tab_x += tab_width;              next_tab_x += tab_width;
19175    
19176            it->pixel_width = next_tab_x - x;            it->pixel_width = next_tab_x - x;

Legend:
Removed from v.1.949  
changed lines
  Added in v.1.950

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26