aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann <[email protected]>2001-03-23 12:26:28 +0000
committerGerd Moellmann <[email protected]>2001-03-23 12:26:28 +0000
commit091f887891422b7fc5e769b62c76cc6600ccc7b1 (patch)
tree1545cc0a1e537fa3b961137c669bfff50fc0f422 /src
parent991786ddc0a6df95119c4fe05f01e49065c58483 (diff)
(dump_glyph_row): Fix output for NGLYPHS == 2.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/xdisp.c7
2 files changed, 7 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 1a5f2e9051..2cd44be917 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2001-03-23 Gerd Moellmann <[email protected]>
+
+ * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
+
2001-03-23 Eli Zaretskii <[email protected]>
* xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
diff --git a/src/xdisp.c b/src/xdisp.c
index 5bef469705..712860d51e 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -11732,12 +11732,11 @@ dump_glyph_row (matrix, vpos, glyphs)
for (area = LEFT_MARGIN_AREA; area < LAST_AREA; ++area)
{
- struct glyph *glyph, *glyph_end;
- glyph = row->glyphs[area];
- glyph_end = glyph + row->used[area];
+ struct glyph *glyph = row->glyphs[area];
+ struct glyph *glyph_end = glyph + row->used[area];
/* Glyph for a line end in text. */
- if (glyph == glyph_end && glyph->charpos > 0)
+ if (area == TEXT_AREA && glyph == glyph_end && glyph->charpos > 0)
++glyph_end;
if (glyph < glyph_end)