unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Matthew Dempsky <matthew@dempsky.org>
To: 5117@emacsbugs.donarmstrong.com
Subject: bug#5117: 23.1.50; Weird display when wrap-prefix contains tabs
Date: Thu, 3 Dec 2009 14:38:20 -0800	[thread overview]
Message-ID: <d791b8790912031438s77c3f81an388d9d7b3d9c2b9d@mail.gmail.com> (raw)

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	other threads:[~2009-12-03 22:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-03 22:38 Matthew Dempsky [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-01-01 18:35 bug#5117: 23.1.50; Weird display when wrap-prefix contains tabs Chong Yidong
2016-07-09 13:11 ` Andrew Hyatt
2009-12-05 21:14 Chong Yidong
2009-12-06  0:36 ` Matthew Dempsky
2009-12-03 22:06 Matthew Dempsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d791b8790912031438s77c3f81an388d9d7b3d9c2b9d@mail.gmail.com \
    --to=matthew@dempsky.org \
    --cc=5117@emacsbugs.donarmstrong.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).