aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorScott Prager <splinterofchaos@gmail.com>2015-04-09 11:14:22 -0400
committerScott Prager <splinterofchaos@gmail.com>2015-04-09 11:14:22 -0400
commit4a7364c807a5ff03e7e4fd94549bc64a00f6ea99 (patch)
tree0a40a1766194763d035e7afdfd74a172349e0d08 /test
parentbae1da3f74ec91b8a79c764aa0277d96c932b2aa (diff)
parentcd7b910e8144dcc6092c7b1e1bfdc3193fdd643b (diff)
downloadrneovim-4a7364c807a5ff03e7e4fd94549bc64a00f6ea99.tar.gz
rneovim-4a7364c807a5ff03e7e4fd94549bc64a00f6ea99.tar.bz2
rneovim-4a7364c807a5ff03e7e4fd94549bc64a00f6ea99.zip
Merge pull request #2374 from mhinz/hl-group-termcursor
[RDY] Add new highlight groups TermCursor and TermCursorNC
Diffstat (limited to 'test')
-rw-r--r--test/functional/legacy/051_highlight_spec.lua6
-rw-r--r--test/functional/terminal/cursor_spec.lua6
-rw-r--r--test/functional/terminal/helpers.lua2
3 files changed, 7 insertions, 7 deletions
diff --git a/test/functional/legacy/051_highlight_spec.lua b/test/functional/legacy/051_highlight_spec.lua
index 3d0375312d..620df97aac 100644
--- a/test/functional/legacy/051_highlight_spec.lua
+++ b/test/functional/legacy/051_highlight_spec.lua
@@ -24,10 +24,10 @@ describe(':highlight', function()
guifg=Blue |
EndOfBuffer xxx links to NonText|
|
+ TermCursor xxx cterm=reverse |
+ gui=reverse |
+ TermCursorNC xxx cleared |
NonText xxx ctermfg=12 |
- gui=bold |
- guifg=Blue |
- Directory xxx ctermfg=4 |
-- More --^ |
]])
feed('q')
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},
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)