mirror of
https://github.com/neovim/neovim.git
synced 2025-12-09 16:12:48 +00:00
vim-patch:9.0.0757: line number not visisble with 'smoothscroll', 'nu' and 'rnu'
Problem: Line number not visisble with 'smoothscroll', 'nu' and 'rnu'.
Solution: Put the ">>>" after the line number instead of on top.
eb4de62931
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -181,6 +181,12 @@ describe('smoothscroll', function()
|
||||
set smoothscroll scrolloff=5
|
||||
set number cpo+=n
|
||||
:3
|
||||
func g:DoRel()
|
||||
set number relativenumber scrolloff=0
|
||||
:%del
|
||||
call setline(1, [ 'one', 'very long text '->repeat(12), 'three', ])
|
||||
exe "normal 2Gzt\<C-E>"
|
||||
endfunc
|
||||
]])
|
||||
screen:expect([[
|
||||
1 one word word word word word word wo|
|
||||
@@ -271,6 +277,21 @@ describe('smoothscroll', function()
|
||||
~ |
|
||||
|
|
||||
]])
|
||||
exec('call DoRel()')
|
||||
screen:expect([[
|
||||
2<<<ong text very long text very lon^g te|
|
||||
xt very long text very long text ver|
|
||||
y long text very long text very long|
|
||||
text very long text very long text |
|
||||
1 three |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
--No lines in buffer-- |
|
||||
]])
|
||||
end)
|
||||
|
||||
-- oldtest: Test_smoothscroll_diff_mode()
|
||||
|
||||
Reference in New Issue
Block a user