move.c: add cursor adjustment for scrolloff (#6319)

This commit is contained in:
lonerover 2017-03-21 21:36:31 +08:00
parent 2611ba8abb
commit 7418adc143
2 changed files with 1 additions and 1 deletions

View File

@ -1877,6 +1877,7 @@ int onepage(int dir, long count)
} }
} }
foldAdjustCursor(); foldAdjustCursor();
cursor_correct();
check_cursor_col(); check_cursor_col();
if (retval == OK) { if (retval == OK) {
beginline(BL_SOL | BL_FIX); beginline(BL_SOL | BL_FIX);

View File

@ -433,7 +433,6 @@ func! Test_normal13_help()
endfunc endfunc
func! Test_normal14_page() func! Test_normal14_page()
throw "skipped: Nvim regression: CTRL-F with 'scrolloff'"
" basic test for Ctrl-F and Ctrl-B " basic test for Ctrl-F and Ctrl-B
call Setup_NewWindow() call Setup_NewWindow()
exe "norm! \<c-f>" exe "norm! \<c-f>"