diff options
author | Felipe Morales <hel.sheep@gmail.com> | 2015-06-20 17:16:10 -0300 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-08-22 13:48:48 -0400 |
commit | be29de1fa2b2dde54f4e43bc12d8bb7a46845308 (patch) | |
tree | b88e02308a4dbcc9fbef948935a33473da010fcc /test/functional | |
parent | 105a72eabc6f74195b6319471344148726683b9d (diff) | |
download | rneovim-be29de1fa2b2dde54f4e43bc12d8bb7a46845308.tar.gz rneovim-be29de1fa2b2dde54f4e43bc12d8bb7a46845308.tar.bz2 rneovim-be29de1fa2b2dde54f4e43bc12d8bb7a46845308.zip |
defaults: set 'listchars' to "tab:> ,trail:-,nbsp:+". #2872
Re: https://github.com/neovim/neovim/issues/2676
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/legacy/listchars_spec.lua | 5 | ||||
-rw-r--r-- | test/functional/ui/syntax_conceal_spec.lua | 18 |
2 files changed, 14 insertions, 9 deletions
diff --git a/test/functional/legacy/listchars_spec.lua b/test/functional/legacy/listchars_spec.lua index e6c64daed7..89ed90178b 100644 --- a/test/functional/legacy/listchars_spec.lua +++ b/test/functional/legacy/listchars_spec.lua @@ -5,7 +5,10 @@ local feed, insert, source = helpers.feed, helpers.insert, helpers.source local clear, execute, expect = helpers.clear, helpers.execute, helpers.expect describe("'listchars'", function() - before_each(clear) + before_each(function() + clear() + execute('set listchars&vi') + end) it("works with 'list'", function() source([[ diff --git a/test/functional/ui/syntax_conceal_spec.lua b/test/functional/ui/syntax_conceal_spec.lua index ebfe067bbe..66ea779011 100644 --- a/test/functional/ui/syntax_conceal_spec.lua +++ b/test/functional/ui/syntax_conceal_spec.lua @@ -159,11 +159,13 @@ describe('Screen', function() ]]) end) - it('initially and conceal its start tag and end tag.', function() - execute("syn region rText matchgroup=rMatch start='<r>' end='</r>' concealends cchar=-") + it('initially and conceal its start tag and end tag.', function() + -- concealends has a known bug (todo.txt) where the first match won't + -- be replaced with cchar. + execute("syn region rText matchgroup=rMatch start='<r>' end='</r>' concealends cchar=-") screen:expect([[ - {1:-} a region of text {1:-} | - {1:-} a region of text {1:-} | + {1: } a region of text {1:-} | + {1: } a region of text {1:-} | ^ | ~ | ~ | @@ -179,9 +181,9 @@ describe('Screen', function() execute("syn region rText contains=rText matchgroup=rMatch start='<r>' end='</r>' concealends cchar=-") insert("<r> A region with <r> a nested <r> nested region.</r> </r> </r>\n") screen:expect([[ - {1:-} a region of text {1:-} | - {1:-} a region of text {1:-} | - {1:-} A region with {1:-} a nested {1:-} nested region.{1:-} | + {1: } a region of text {1:-} | + {1: } a region of text {1:-} | + {1: } A region with {1: } a nested {1: } nested region.{1:-} | {1:-} {1:-} | ^ | ~ | @@ -281,7 +283,7 @@ describe('Screen', function() execute("let &conceallevel=1") screen:expect([[ // No Conceal | - {1:-} | + {1: } | {1:C} | | ^ | |