aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal/cursor_spec.lua
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2015-04-08 13:34:27 +0200
committerMarco Hinz <mh.codebro@gmail.com>2015-04-09 16:38:32 +0200
commitcd7b910e8144dcc6092c7b1e1bfdc3193fdd643b (patch)
tree0a40a1766194763d035e7afdfd74a172349e0d08 /test/functional/terminal/cursor_spec.lua
parentbae1da3f74ec91b8a79c764aa0277d96c932b2aa (diff)
downloadrneovim-cd7b910e8144dcc6092c7b1e1bfdc3193fdd643b.tar.gz
rneovim-cd7b910e8144dcc6092c7b1e1bfdc3193fdd643b.tar.bz2
rneovim-cd7b910e8144dcc6092c7b1e1bfdc3193fdd643b.zip
Add new highlight groups TermCursor/TermCursorNC
These highlight groups replace the old mechanism of setting: - {g,b}:terminal_focused_cursor_highlight - {g,b}:terminal_unfocused_cursor_highlight
Diffstat (limited to 'test/functional/terminal/cursor_spec.lua')
-rw-r--r--test/functional/terminal/cursor_spec.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/functional/terminal/cursor_spec.lua b/test/functional/terminal/cursor_spec.lua
index 3e3f9cbf4f..cecb33de7c 100644
--- a/test/functional/terminal/cursor_spec.lua
+++ b/test/functional/terminal/cursor_spec.lua
@@ -129,10 +129,8 @@ describe('cursor with customized highlighting', function()
before_each(function()
clear()
- nvim('set_var', 'terminal_focused_cursor_highlight', 'CursorFocused')
- nvim('set_var', 'terminal_unfocused_cursor_highlight', 'CursorUnfocused')
- nvim('command', 'highlight CursorFocused ctermfg=45 ctermbg=46')
- nvim('command', 'highlight CursorUnfocused ctermfg=55 ctermbg=56')
+ nvim('command', 'highlight TermCursor ctermfg=45 ctermbg=46 cterm=NONE')
+ nvim('command', 'highlight TermCursorNC ctermfg=55 ctermbg=56 cterm=NONE')
screen = Screen.new(50, 7)
screen:set_default_attr_ids({
[1] = {foreground = 45, background = 46},