aboutsummaryrefslogtreecommitdiffstats
path: root/src/indent.c
diff options
context:
space:
mode:
authorKim F. Storm2005-01-19 23:17:00 +0000
committerKim F. Storm2005-01-19 23:17:00 +0000
commit8fd7aa51de09980366ad249ef80081ef0763d3ef (patch)
tree681c0434104c21e534528bb8ecf9fcf40c001aa8 /src/indent.c
parent3d6a4b2d4409dc59f431fd964b1cf6a15d621009 (diff)
downloademacs-8fd7aa51de09980366ad249ef80081ef0763d3ef.tar.gz
emacs-8fd7aa51de09980366ad249ef80081ef0763d3ef.zip
(Fvertical_motion): Temporarily disable selective display.
Diffstat (limited to 'src/indent.c')
-rw-r--r--src/indent.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/indent.c b/src/indent.c
index 49ee90b6360..46ee5ce2bf4 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -2071,6 +2071,7 @@ whether or not it is currently displayed in some window. */)
2071 else 2071 else
2072 { 2072 {
2073 int it_start; 2073 int it_start;
2074 int oselective;
2074 2075
2075 SET_TEXT_POS (pt, PT, PT_BYTE); 2076 SET_TEXT_POS (pt, PT, PT_BYTE);
2076 start_display (&it, w, pt); 2077 start_display (&it, w, pt);
@@ -2084,7 +2085,11 @@ whether or not it is currently displayed in some window. */)
2084 it_start = IT_CHARPOS (it); 2085 it_start = IT_CHARPOS (it);
2085 reseat_at_previous_visible_line_start (&it); 2086 reseat_at_previous_visible_line_start (&it);
2086 it.current_x = it.hpos = 0; 2087 it.current_x = it.hpos = 0;
2088 /* Temporarily disable selective display so we don't move too far */
2089 oselective = it.selective;
2090 it.selective = 0;
2087 move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS); 2091 move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS);
2092 it.selective = oselective;
2088 2093
2089 /* Move back if we got too far. This may happen if 2094 /* Move back if we got too far. This may happen if
2090 truncate-lines is on and PT is beyond right margin. */ 2095 truncate-lines is on and PT is beyond right margin. */