diff options
author | Kim F. Storm <storm@cua.dk> | 2005-01-19 23:17:00 +0000 |
---|---|---|
committer | Kim F. Storm <storm@cua.dk> | 2005-01-19 23:17:00 +0000 |
commit | b3fce718b2e0805ae767ccb180c21d687dd09e90 (patch) | |
tree | a020a54e68fe584704ca4cc0b77e1209aa2366c5 /src/indent.c | |
parent | ac9d04a4cb7ce3fb21158cb74c41f194625fdb78 (diff) | |
download | emacs-b3fce718b2e0805ae767ccb180c21d687dd09e90.tar.gz |
(Fvertical_motion): Temporarily disable selective display.
Diffstat (limited to 'src/indent.c')
-rw-r--r-- | src/indent.c | 5 |
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. */) else { int it_start; + int oselective; SET_TEXT_POS (pt, PT, PT_BYTE); start_display (&it, w, pt); @@ -2084,7 +2085,11 @@ whether or not it is currently displayed in some window. */) 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. */ |