mirror of
https://github.com/neovim/neovim.git
synced 2026-04-20 06:20:53 +00:00
functests: Fix legacy/107_adjust_window_and_contents_spec
This commit is contained in:
@@ -22,13 +22,15 @@ describe('107', function()
|
||||
command('new')
|
||||
command('call setline(1, range(1,256))')
|
||||
command('let r=[]')
|
||||
command('func! GetScreenStr(row)')
|
||||
command(' let str = ""')
|
||||
command(' for c in range(1,3)')
|
||||
command(' let str .= nr2char(screenchar(a:row, c))')
|
||||
command(' endfor')
|
||||
command(' return str')
|
||||
command('endfunc')
|
||||
command([[
|
||||
func! GetScreenStr(row)
|
||||
let str = ""
|
||||
for c in range(1,3)
|
||||
let str .= nr2char(screenchar(a:row, c))
|
||||
endfor
|
||||
return str
|
||||
endfunc
|
||||
]])
|
||||
command([[exe ":norm! \<C-W>t\<C-W>=1Gzt\<C-W>w\<C-W>+"]])
|
||||
command('let s3=GetScreenStr(1)')
|
||||
command('wincmd p')
|
||||
@@ -59,7 +61,7 @@ describe('107', function()
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
:call garbagecollect(1) |
|
||||
3 more lines |
|
||||
]])
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user