summaryrefslogtreecommitdiffstats
path: root/src/move.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/move.c')
-rw-r--r--src/move.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/move.c b/src/move.c
index 2fc2260560..f3d7825f38 100644
--- a/src/move.c
+++ b/src/move.c
@@ -2471,7 +2471,8 @@ onepage(dir, count)
foldAdjustCursor();
#endif
cursor_correct();
- beginline(BL_SOL | BL_FIX);
+ if (retval == OK)
+ beginline(BL_SOL | BL_FIX);
curwin->w_valid &= ~(VALID_WCOL|VALID_WROW|VALID_VIRTCOL);
/*