emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r107712: Remove an incorrect assertio


From: Eli Zaretskii
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r107712: Remove an incorrect assertion on move_it_by_lines.
Date: Sat, 31 Mar 2012 20:08:38 +0300
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 107712
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Sat 2012-03-31 20:08:38 +0300
message:
  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)
modified:
  src/ChangeLog
  src/xdisp.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-03-31 07:45:33 +0000
+++ b/src/ChangeLog     2012-03-31 17:08:38 +0000
@@ -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  <address@hidden>
 

=== modified file 'src/xdisp.c'
--- a/src/xdisp.c       2012-03-31 07:45:33 +0000
+++ b/src/xdisp.c       2012-03-31 17:08:38 +0000
@@ -8966,7 +8966,6 @@
     {
       /* 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;
     }


reply via email to

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