bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#5117: 23.1.50; Weird display when wrap-prefix contains tabs


From: Matthew Dempsky
Subject: bug#5117: 23.1.50; Weird display when wrap-prefix contains tabs
Date: Thu, 3 Dec 2009 14:38:20 -0800

This patch seems to correct the behavior:

--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -21380,7 +21380,7 @@ x_produce_glyphs (it)
          if (font->space_width > 0)
            {
              int tab_width = it->tab_width * font->space_width;
-             int x = it->current_x + it->continuation_lines_width;
+             int x = it->current_x;
              int next_tab_x = ((1 + x + tab_width - 1) / tab_width) * 
tab_width;

              /* If the distance from the current position to the next tab





reply via email to

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