diff options
| author | ckelsel <ckelsel@hotmail.com> | 2017-09-27 19:34:19 +0800 |
|---|---|---|
| committer | ckelsel <ckelsel@hotmail.com> | 2017-09-27 19:34:19 +0800 |
| commit | c3de878ab1c3d1001660c3b3d6ce39fbc4fcd03c (patch) | |
| tree | cf606878176f67bb5dcbf480d47d7ea9e0f4d1bf /test/functional/legacy/listlbr_spec.lua | |
| parent | 90fc9039ddcadc61d4236bdd2d638d690081e04d (diff) | |
| parent | 542ed5f5d31647bfec6d3119f4e2993544530c35 (diff) | |
| download | rneovim-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.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"') |