diff options
author | Nimit Bhardwaj <nimitbhardwaj@gmail.com> | 2018-02-28 22:11:37 +0530 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-03-27 04:38:19 +0200 |
commit | 8d5a46e77b1e0c77296f1d0d192e7906dd37c0d7 (patch) | |
tree | 480f2214ec6397a6008461bcfcf83f49105a7702 /test/functional/ui/highlight_spec.lua | |
parent | a9c94f7bb05c53b1c81ec7e65f5df86947c12c58 (diff) | |
download | rneovim-8d5a46e77b1e0c77296f1d0d192e7906dd37c0d7.tar.gz rneovim-8d5a46e77b1e0c77296f1d0d192e7906dd37c0d7.tar.bz2 rneovim-8d5a46e77b1e0c77296f1d0d192e7906dd37c0d7.zip |
TUI: implement "standout" attribute #8081
closes #8054
Diffstat (limited to 'test/functional/ui/highlight_spec.lua')
-rw-r--r-- | test/functional/ui/highlight_spec.lua | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/test/functional/ui/highlight_spec.lua b/test/functional/ui/highlight_spec.lua index 6f1b31964b..e874c45272 100644 --- a/test/functional/ui/highlight_spec.lua +++ b/test/functional/ui/highlight_spec.lua @@ -312,7 +312,7 @@ describe('highlight defaults', function() end) end) -describe('guisp (special/undercurl)', function() +describe('highlight', function() local screen before_each(function() @@ -321,7 +321,31 @@ describe('guisp (special/undercurl)', function() screen:attach() end) - it('can be set and is applied like foreground or background', function() + it('cterm=standout gui=standout', function() + screen:detach() + screen = Screen.new(20,5) + screen:attach() + screen:set_default_attr_ids({ + [1] = {bold = true, foreground = Screen.colors.Blue1}, + [2] = {standout = true, bold = true, underline = true, + background = Screen.colors.Gray90, foreground = Screen.colors.Blue1}, + [3] = {standout = true, underline = true, + background = Screen.colors.Gray90} + }) + feed_command('hi CursorLine cterm=standout,underline gui=standout,underline') + feed_command('set cursorline') + feed_command('set listchars=space:.,eol:¬,tab:>-,extends:>,precedes:<,trail:* list') + feed('i\t abcd <cr>\t abcd <cr><esc>k') + screen:expect([[ + {1:>-------.}abcd{1:*¬} | + {2:^>-------.}{3:abcd}{2:*¬}{3: }| + {1:¬} | + {1:~ }| + | + ]]) + end) + + it('guisp (special/undercurl)', function() feed_command('syntax on') feed_command('syn keyword TmpKeyword neovim') feed_command('syn keyword TmpKeyword1 special') |