diff options
author | KillTheMule <github@pipsfrank.de> | 2017-09-24 20:42:48 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-09-24 20:42:48 +0200 |
commit | 126b2ca077718a02c086039c8f98ef267cf9eb3e (patch) | |
tree | afd3ab0a6d0a433ebbb7eab6f96ddf07829c88e2 /test/functional/legacy/listlbr_spec.lua | |
parent | 2b4a52f901bf4cc9a88c45eea39c303028091dd3 (diff) | |
download | rneovim-126b2ca077718a02c086039c8f98ef267cf9eb3e.tar.gz rneovim-126b2ca077718a02c086039c8f98ef267cf9eb3e.tar.bz2 rneovim-126b2ca077718a02c086039c8f98ef267cf9eb3e.zip |
test: lint whitespace in legacy/ (#7308)
Diffstat (limited to 'test/functional/legacy/listlbr_spec.lua')
-rw-r--r-- | test/functional/legacy/listlbr_spec.lua | 27 |
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"') |