emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/xdisp.c,v


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/src/xdisp.c,v
Date: Fri, 06 Jun 2008 23:07:51 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Miles Bader <miles>     08/06/06 23:07:51

Index: xdisp.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/xdisp.c,v
retrieving revision 1.1217
retrieving revision 1.1218
diff -u -b -r1.1217 -r1.1218
--- xdisp.c     5 Jun 2008 03:57:09 -0000       1.1217
+++ xdisp.c     6 Jun 2008 23:07:50 -0000       1.1218
@@ -20980,14 +20980,14 @@
        }
       else if (it->char_to_display == '\t')
        {
-         int tab_width = it->tab_width * FRAME_SPACE_WIDTH (it->f);
+         int tab_width = it->tab_width * font->space_width;
          int x = it->current_x + it->continuation_lines_width;
          int next_tab_x = ((1 + x + tab_width - 1) / tab_width) * tab_width;
 
          /* If the distance from the current position to the next tab
             stop is less than a space character width, use the
             tab stop after that.  */
-         if (next_tab_x - x < FRAME_SPACE_WIDTH (it->f))
+         if (next_tab_x - x < font->space_width)
            next_tab_x += tab_width;
 
          it->pixel_width = next_tab_x - x;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]