functests: Fix legacy/107_adjust_window_and_contents_spec

This commit is contained in:
ZyX
2017-04-09 02:10:08 +03:00
parent 5fd8f637af
commit 2824eb7774

View File

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