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:
Luuk van Baal
2023-04-27 00:57:48 +02:00
parent c426f7a622
commit 6146400605
4 changed files with 51 additions and 4 deletions

View File

@@ -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()