]> git.eshelyaron.com Git - emacs.git/commitdiff
Another part of fixing bug #9296 with vertical cursor motion.
authorEli Zaretskii <eliz@gnu.org>
Mon, 15 Aug 2011 06:44:48 +0000 (09:44 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 15 Aug 2011 06:44:48 +0000 (09:44 +0300)
 src/xdisp.c (move_it_in_display_line_to): Don't reset pixel
 coordinates of the iterator when restoring from ppos_it.

src/ChangeLog
src/xdisp.c

index 40a0ed24e6a63478ae5f0af12f7304912da39f94..628875f7ae6db21f2476ac8aca18a4cbfc061cf6 100644 (file)
@@ -1,3 +1,9 @@
+2011-08-15  Eli Zaretskii  <eliz@gnu.org>
+
+       * xdisp.c (move_it_in_display_line_to): Don't reset pixel
+       coordinates of the iterator when restoring from ppos_it.
+       (Bug#9296)
+
 2011-08-14  Kenichi Handa  <handa@m17n.org>
 
        * process.c (create_process): Call setup_process_coding_systems
index ff3f55bef256de348a643c571888b9eeb4e244b0..b83d4bac74343b1a5e39ac7b8965aa7b3a70934a 100644 (file)
@@ -8093,7 +8093,8 @@ move_it_in_display_line_to (struct it *it,
                {
                  if (!at_eob_p && IT_CHARPOS (ppos_it) < ZV)
                    RESTORE_IT (it, &ppos_it, ppos_data);
-                 goto buffer_pos_reached;
+                 result = MOVE_POS_MATCH_OR_ZV;
+                 break;
                }
              if (ITERATOR_AT_END_OF_LINE_P (it))
                {
@@ -8107,7 +8108,8 @@ move_it_in_display_line_to (struct it *it,
            {
              if (IT_CHARPOS (ppos_it) < ZV)
                RESTORE_IT (it, &ppos_it, ppos_data);
-             goto buffer_pos_reached;
+             result = MOVE_POS_MATCH_OR_ZV;
+             break;
            }
          result = MOVE_LINE_TRUNCATED;
          break;