[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r105825: Fix a bug in :align-to on a
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r105825: Fix a bug in :align-to on a TTY when the column is beyond frame width. |
Date: |
Sun, 18 Sep 2011 19:17:40 +0300 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
revno: 105825
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Sun 2011-09-18 19:17:40 +0300
message:
Fix a bug in :align-to on a TTY when the column is beyond frame width.
src/xdisp.c (produce_stretch_glyph): Don't subtract 1 "pixel" when
computing width of the stretch on a TTY.
modified:
src/ChangeLog
src/xdisp.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2011-09-18 15:48:12 +0000
+++ b/src/ChangeLog 2011-09-18 16:17:40 +0000
@@ -5,6 +5,9 @@
stretch). Fixes bug#9530 on a TTY. Under word-wrap, don't record
buffer positions that will be removed from the glyph row because
they don't fit.
+ (produce_stretch_glyph): Fix a bug in :align-to on a TTY when the
+ column is beyond frame width: don't subtract 1 "pixel" when
+ computing width of the stretch.
2011-09-18 YAMAMOTO Mitsuharu <address@hidden>
=== modified file 'src/xdisp.c'
--- a/src/xdisp.c 2011-09-18 15:48:12 +0000
+++ b/src/xdisp.c 2011-09-18 16:17:40 +0000
@@ -23293,7 +23293,14 @@
if (width > 0 && it->line_wrap != TRUNCATE
&& it->current_x + width > it->last_visible_x)
- width = it->last_visible_x - it->current_x - 1;
+ {
+ width = it->last_visible_x - it->current_x;
+#ifdef HAVE_WINDOW_SYSTEM
+ /* Subtact one more pixel from the stretch width, but only on
+ GUI frames, since on a TTY each glyph is one "pixel" wide. */
+ width -= FRAME_WINDOW_P (it->f);
+#endif
+ }
if (width > 0 && height > 0 && it->glyph_row)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r105825: Fix a bug in :align-to on a TTY when the column is beyond frame width.,
Eli Zaretskii <=