vim-patch:9.0.1328: error when using "none" for GUI color is confusing (#40347)

Problem:    Error when using "none" for GUI color is confusing.
Solution:   Mention that the name should perhaps be "NONE". (closes vim/vim#1400)

5b9f57262f

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
Jan Edmund Lazo
2026-06-20 22:42:07 -04:00
committed by GitHub
parent 1724096ae0
commit d40c07511a

View File

@@ -39,6 +39,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)