emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs/src indent.c


From: Chong Yidong
Subject: [Emacs-diffs] emacs/src indent.c
Date: Tue, 30 Dec 2008 15:03:08 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Chong Yidong <cyd>      08/12/30 15:03:08

Modified files:
        src            : indent.c 

Log message:
        (Fvertical_motion): Don't advance iterator if we have reseated to the
        desired position.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/src/indent.c?cvsroot=emacs&r1=1.218&r2=1.219

Patches:
Index: indent.c
===================================================================
RCS file: /sources/emacs/emacs/src/indent.c,v
retrieving revision 1.218
retrieving revision 1.219
diff -u -b -r1.218 -r1.219
--- indent.c    17 Sep 2008 20:34:16 -0000      1.218
+++ indent.c    30 Dec 2008 15:03:08 -0000      1.219
@@ -2063,7 +2063,7 @@
     }
   else
     {
-      int it_start, oselective, first_x, it_overshoot_expected;
+      int it_start, first_x, it_overshoot_expected;
 
       SET_TEXT_POS (pt, PT, PT_BYTE);
       start_display (&it, w, pt);
@@ -2093,11 +2093,15 @@
         really at some x > 0.  */
       reseat_at_previous_visible_line_start (&it);
       it.current_x = it.hpos = 0;
-      /* Temporarily disable selective display so we don't move too far */
-      oselective = it.selective;
+      if (IT_CHARPOS (it) != PT)
+       {
+         int oselective = it.selective;
+         /* Temporarily disable selective display so we don't move
+            too far */
       it.selective = 0;
       move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS);
       it.selective = oselective;
+       }
 
       if (XINT (lines) <= 0)
        {




reply via email to

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