# HG changeset patch # User Kim F. Storm # Date 1106176620 0 # Node ID 7d7e154e3e7a42e2f71be66364282f69fac2707f # Parent 763e003c822670bf4da45692884ce8baf376d091 (Fvertical_motion): Temporarily disable selective display. diff -r 763e003c8226 -r 7d7e154e3e7a src/indent.c --- a/src/indent.c Wed Jan 19 23:16:39 2005 +0000 +++ b/src/indent.c Wed Jan 19 23:17:00 2005 +0000 @@ -2071,6 +2071,7 @@ else { int it_start; + int oselective; SET_TEXT_POS (pt, PT, PT_BYTE); start_display (&it, w, pt); @@ -2084,7 +2085,11 @@ it_start = IT_CHARPOS (it); 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; + it.selective = 0; move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS); + it.selective = oselective; /* Move back if we got too far. This may happen if truncate-lines is on and PT is beyond right margin. */