emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] trunk r116705: src/xdisp.c (Fmove_point_visually): Fix pre


From: Eli Zaretskii
Subject: [Emacs-diffs] trunk r116705: src/xdisp.c (Fmove_point_visually): Fix previous change.
Date: Sat, 08 Mar 2014 13:18:48 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 116705
revision-id: address@hidden
parent: address@hidden
fixes bug: http://debbugs.gnu.org/16961
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Sat 2014-03-08 15:18:43 +0200
message:
  src/xdisp.c (Fmove_point_visually): Fix previous change.
modified:
  src/xdisp.c                    xdisp.c-20091113204419-o5vbwnq5f7feedwu-240
=== modified file 'src/xdisp.c'
--- a/src/xdisp.c       2014-03-08 10:54:43 +0000
+++ b/src/xdisp.c       2014-03-08 13:18:43 +0000
@@ -20880,7 +20880,10 @@
                  SAVE_IT (it2, it, it_data);
                  move_it_in_display_line_to (&it, ZV, target_x,
                                              MOVE_TO_POS | MOVE_TO_X);
-                 target_x = it.current_x - 1;
+                 /* If we arrived at target_x, that _is_ the last
+                    character on the previous line.  */
+                 if (it.current_x != target_x)
+                   target_x = it.current_x - 1;
                  RESTORE_IT (&it, &it2, it_data);
                }
            }


reply via email to

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