aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/listlbr_spec.lua
diff options
context:
space:
mode:
authorckelsel <ckelsel@hotmail.com>2017-09-27 19:21:40 +0800
committerckelsel <ckelsel@hotmail.com>2017-09-27 19:21:40 +0800
commitdde62900c8cfed967bd54218c8eb0790954f8c14 (patch)
treec3bc82d0edcc3582578922bd0d13233ab751b576 /test/functional/legacy/listlbr_spec.lua
parent3a1c33a6c3ad5074bfc442507282a438726f1b58 (diff)
parent542ed5f5d31647bfec6d3119f4e2993544530c35 (diff)
downloadrneovim-dde62900c8cfed967bd54218c8eb0790954f8c14.tar.gz
rneovim-dde62900c8cfed967bd54218c8eb0790954f8c14.tar.bz2
rneovim-dde62900c8cfed967bd54218c8eb0790954f8c14.zip
Merge branch 'master' of https://github.com/neovim/neovim into vim-8.0.0101
fix Conflicts
Diffstat (limited to 'test/functional/legacy/listlbr_spec.lua')
-rw-r--r--test/functional/legacy/listlbr_spec.lua27
1 files changed, 15 insertions, 12 deletions
diff --git a/test/functional/legacy/listlbr_spec.lua b/test/functional/legacy/listlbr_spec.lua
index d39125c9e6..f70d55f4a3 100644
--- a/test/functional/legacy/listlbr_spec.lua
+++ b/test/functional/legacy/listlbr_spec.lua
@@ -7,6 +7,9 @@ local clear, feed_command, expect = helpers.clear, helpers.feed_command, helpers
describe('listlbr', function()
setup(clear)
+ -- luacheck: ignore 621 (Indentation)
+ -- luacheck: ignore 611 (Line contains only whitespaces)
+ -- luacheck: ignore 613 (Trailing whitespaces in a string)
it('is working', function()
insert([[
dummy text]])
@@ -20,20 +23,20 @@ describe('listlbr', function()
feed_command('set ts=4 sw=4 sts=4 linebreak sbr=+ wrap')
source([[
fu! ScreenChar(width)
- let c=''
- for j in range(1,4)
- for i in range(1,a:width)
- let c.=nr2char(screenchar(j, i))
- endfor
- let c.="\n"
- endfor
- return c
+ let c=''
+ for j in range(1,4)
+ for i in range(1,a:width)
+ let c.=nr2char(screenchar(j, i))
+ endfor
+ let c.="\n"
+ endfor
+ return c
endfu
fu! DoRecordScreen()
- wincmd l
- $put =printf(\"\n%s\", g:test)
- $put =g:line
- wincmd p
+ wincmd l
+ $put =printf(\"\n%s\", g:test)
+ $put =g:line
+ wincmd p
endfu
]])
feed_command('let g:test="Test 1: set linebreak"')