forked from aniani/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.
This commit is contained in:
@@ -121,6 +121,17 @@ func Test_smoothscroll_number()
|
||||
set smoothscroll
|
||||
set number cpo+=n
|
||||
:3
|
||||
|
||||
def g:DoRel()
|
||||
set number relativenumber scrolloff=0
|
||||
:%del
|
||||
setline(1, [
|
||||
'one',
|
||||
'very long text '->repeat(12),
|
||||
'three',
|
||||
])
|
||||
exe "normal 2Gzt\<C-E>"
|
||||
enddef
|
||||
END
|
||||
call writefile(lines, 'XSmoothNumber', 'D')
|
||||
let buf = RunVimInTerminal('-S XSmoothNumber', #{rows: 12, cols: 40})
|
||||
@@ -138,6 +149,9 @@ func Test_smoothscroll_number()
|
||||
call term_sendkeys(buf, "\<C-Y>")
|
||||
call VerifyScreenDump(buf, 'Test_smooth_number_6', {})
|
||||
|
||||
call term_sendkeys(buf, ":call DoRel()\<CR>")
|
||||
call VerifyScreenDump(buf, 'Test_smooth_number_7', {})
|
||||
|
||||
call StopVimInTerminal(buf)
|
||||
endfunc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user