diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2015-04-08 13:34:27 +0200 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2015-04-09 16:38:32 +0200 |
commit | cd7b910e8144dcc6092c7b1e1bfdc3193fdd643b (patch) | |
tree | 0a40a1766194763d035e7afdfd74a172349e0d08 /test/functional/terminal/helpers.lua | |
parent | bae1da3f74ec91b8a79c764aa0277d96c932b2aa (diff) | |
download | rneovim-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/helpers.lua')
-rw-r--r-- | test/functional/terminal/helpers.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/terminal/helpers.lua b/test/functional/terminal/helpers.lua index 631dc579d3..1bc6057a0b 100644 --- a/test/functional/terminal/helpers.lua +++ b/test/functional/terminal/helpers.lua @@ -34,6 +34,8 @@ local function disable_mouse() feed_termcode('[?1002l') end local function screen_setup(extra_height) + nvim('command', 'highlight TermCursor cterm=reverse') + nvim('command', 'highlight TermCursorNC ctermbg=11') nvim('set_var', 'terminal_scrollback_buffer_size', 10) if not extra_height then extra_height = 0 end local screen = Screen.new(50, 7 + extra_height) |