Mercurial > vim
diff src/testdir/test_highlight.vim @ 31992:a509eb37a813 v9.0.1328
patch 9.0.1328: error when using "none" for GUI color is confusing
Commit: https://github.com/vim/vim/commit/5b9f57262fdadf460e6355abf1eee95b4f96abe8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 19 20:49:38 2023 +0000
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 https://github.com/vim/vim/issues/1400)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 19 Feb 2023 22:00:03 +0100 |
parents | bcd204e28fed |
children | e7ab58f57ea3 |
line wrap: on
line diff
--- 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)