summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2012-03-31 20:08:38 +0300
committerEli Zaretskii <eliz@gnu.org>2012-03-31 20:08:38 +0300
commitaf8211739366092e1a239b7486ea33878189baa9 (patch)
tree33d6ea2c09eadd60b35ec3c3a401b215ea4c7f33
parent853b93a3a2e08a88c256dd7c42e87c5a7111217c (diff)
downloademacs-af8211739366092e1a239b7486ea33878189baa9.tar.gz
Remove an incorrect assertion on move_it_by_lines.
src/xdisp.c (move_it_by_lines): Remove the assertion that "it->current_x == 0 && it->hpos == 0" which can be legitimately violated when there's a before-string at the beginning of a line. (Bug#11063)
-rw-r--r--src/ChangeLog4
-rw-r--r--src/xdisp.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 8417f9be259..bd3dbba4d3c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -4,6 +4,10 @@
string comes from a `display' text property, use the buffer
position of that property as if we actually saw that position in
the row's glyphs.
+ (move_it_by_lines): Remove the assertion that
+ "it->current_x == 0 && it->hpos == 0" which can be legitimately
+ violated when there's a before-string at the beginning of a line.
+ (Bug#11063)
2012-03-30 Eli Zaretskii <eliz@gnu.org>
diff --git a/src/xdisp.c b/src/xdisp.c
index 302a09dd974..54379a2e99f 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -8966,7 +8966,6 @@ move_it_by_lines (struct it *it, int dvpos)
{
/* DVPOS == 0 means move to the start of the screen line. */
move_it_vertically_backward (it, 0);
- xassert (it->current_x == 0 && it->hpos == 0);
/* Let next call to line_bottom_y calculate real line height */
last_height = 0;
}