mirror of
https://github.com/neovim/neovim.git
synced 2026-08-31 03:13:48 +00:00
vim-patch:9.2.0356: Cannot apply 'scrolloff' context lines at end of file
Problem: Cannot apply 'scrolloff' context lines at end of file
Solution: Add the 'scrolloffpad' option to keep 'scrolloff' context even
when at the end of the file (McAuley Penney).
closes: vim/vim#19040
a414630393
Co-authored-by: McAuley Penney <jacobmpenney@gmail.com>
This commit is contained in:
@@ -124,7 +124,8 @@ func Test_screenpos()
|
||||
setlocal nonumber display=lastline so=0
|
||||
exe "normal G\<C-Y>\<C-Y>"
|
||||
redraw
|
||||
call assert_equal({'row': winrow + wininfo.height - 1,
|
||||
let winbar_height = get(wininfo, 'winbar', 0)
|
||||
call assert_equal({'row': winrow + wininfo.height - 1 + winbar_height,
|
||||
\ 'col': wincol + 7,
|
||||
\ 'curscol': wincol + 7,
|
||||
\ 'endcol': wincol + 7}, winid->screenpos(line('$'), 8))
|
||||
|
||||
Reference in New Issue
Block a user