aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-04-09 02:10:08 +0300
committerZyX <kp-pav@yandex.ru>2017-04-09 03:24:18 +0300
commit2824eb7774e1ab4d848995c075f176ca7cb6d684 (patch)
tree3c6b0bb61b6df78295d845cb64bbe8cc1dc320ee
parent5fd8f637afed8edd4dbb927e3ffd87108001811d (diff)
downloadrneovim-2824eb7774e1ab4d848995c075f176ca7cb6d684.tar.gz
rneovim-2824eb7774e1ab4d848995c075f176ca7cb6d684.tar.bz2
rneovim-2824eb7774e1ab4d848995c075f176ca7cb6d684.zip
functests: Fix legacy/107_adjust_window_and_contents_spec
-rw-r--r--test/functional/legacy/107_adjust_window_and_contents_spec.lua18
1 files changed, 10 insertions, 8 deletions
diff --git a/test/functional/legacy/107_adjust_window_and_contents_spec.lua b/test/functional/legacy/107_adjust_window_and_contents_spec.lua
index 00918e52fa..836a0f8f24 100644
--- a/test/functional/legacy/107_adjust_window_and_contents_spec.lua
+++ b/test/functional/legacy/107_adjust_window_and_contents_spec.lua
@@ -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)