From 5b9f57262fdadf460e6355abf1eee95b4f96abe8 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 19 Feb 2023 20:49:38 +0000 Subject: patch 9.0.1328: error when using "none" for GUI color is confusing Problem: Error when using "none" for GUI color is confusing. Solution: Mention that the name should perhaps be "NONE". (closes #1400) --- src/testdir/test_highlight.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/testdir/test_highlight.vim') diff --git a/src/testdir/test_highlight.vim b/src/testdir/test_highlight.vim index 26426e05cb..feccf84b6c 100644 --- a/src/testdir/test_highlight.vim +++ b/src/testdir/test_highlight.vim @@ -46,6 +46,10 @@ func Test_highlight() call assert_equal("Group3 xxx cleared", \ split(execute("hi Group3"), "\n")[0]) call assert_fails("hi Crash term='asdf", "E475:") + + if has('gui_running') + call assert_fails('hi NotUsed guibg=none', 'E1361:') + endif endfunc func HighlightArgs(name) -- cgit v1.2.3