diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-09-09 22:06:49 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-09-10 20:12:01 +0200 |
commit | e11dd1110fd018d9bd6d42460186ed69037f8651 (patch) | |
tree | 01985756e88b0dffc8a418d63d09df7ef36bfabd /test/functional/terminal/tui_spec.lua | |
parent | 0bb466f0fcf4eb0915c6b2dd6abbb8cc7fb1c51d (diff) | |
download | rneovim-e11dd1110fd018d9bd6d42460186ed69037f8651.tar.gz rneovim-e11dd1110fd018d9bd6d42460186ed69037f8651.tar.bz2 rneovim-e11dd1110fd018d9bd6d42460186ed69037f8651.zip |
terminal: fix rgb rendering of palette colors
simplify handling of default colors
nvim is always true color internally, remove ui_rgb_attached() check.
Fix "runtime termguicolors" test. The test actually reflected broken behavior
in (parent) nvim: nvim_ui_set_option("rgb", true) was not respected by existing
:terminal instances, so all 16-palette colors became dark blue.
Diffstat (limited to 'test/functional/terminal/tui_spec.lua')
-rw-r--r-- | test/functional/terminal/tui_spec.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index 5bd39c72f3..3d9623a158 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -640,11 +640,11 @@ describe('TUI', function() screen:set_option('rgb', true) screen:set_default_attr_ids({ [1] = {reverse = true}, - [2] = {foreground = 13}, + [2] = {foreground = tonumber('0x4040ff')}, [3] = {bold = true, reverse = true}, [4] = {bold = true}, - [5] = {reverse = true, foreground = 4}, - [6] = {foreground = 4}, + [5] = {reverse = true, foreground = tonumber('0xe0e000')}, + [6] = {foreground = tonumber('0xe0e000')}, [7] = {reverse = true, foreground = Screen.colors.SeaGreen4}, [8] = {foreground = Screen.colors.SeaGreen4}, [9] = {bold = true, foreground = Screen.colors.Blue1}, |