aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/listlbr_spec.lua
diff options
context:
space:
mode:
authorckelsel <ckelsel@hotmail.com>2017-09-27 19:34:19 +0800
committerckelsel <ckelsel@hotmail.com>2017-09-27 19:34:19 +0800
commitc3de878ab1c3d1001660c3b3d6ce39fbc4fcd03c (patch)
treecf606878176f67bb5dcbf480d47d7ea9e0f4d1bf /test/functional/legacy/listlbr_spec.lua
parent90fc9039ddcadc61d4236bdd2d638d690081e04d (diff)
parent542ed5f5d31647bfec6d3119f4e2993544530c35 (diff)
downloadrneovim-c3de878ab1c3d1001660c3b3d6ce39fbc4fcd03c.tar.gz
rneovim-c3de878ab1c3d1001660c3b3d6ce39fbc4fcd03c.tar.bz2
rneovim-c3de878ab1c3d1001660c3b3d6ce39fbc4fcd03c.zip
Merge remote-tracking branch 'upstream/master'
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"')