aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2021-12-05 21:39:37 -0500
committerJames McCoy <jamessan@jamessan.com>2021-12-08 21:47:58 -0500
commitd0b3efb7db90ea8fe2637c9538c8b63acc5fbd19 (patch)
tree23265dcf9573052bb31cb4dae9054e79c1bef4c6 /src/nvim/testdir
parente8f9262125535bea8c7fcf833a715b569e07996e (diff)
downloadrneovim-d0b3efb7db90ea8fe2637c9538c8b63acc5fbd19.tar.gz
rneovim-d0b3efb7db90ea8fe2637c9538c8b63acc5fbd19.tar.bz2
rneovim-d0b3efb7db90ea8fe2637c9538c8b63acc5fbd19.zip
vim-patch:8.2.3743: ":sign" can add a highlight group without a name
Problem: ":sign" can add a highlight group without a name. Solution: Give an error if the group name is missing. (closes vim/vim#9280) https://github.com/vim/vim/commit/5e18ccc60bdddc4aa39ab039f1a7c918f29e67ce
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_signs.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_signs.vim b/src/nvim/testdir/test_signs.vim
index 35c80b375a..3afabfa959 100644
--- a/src/nvim/testdir/test_signs.vim
+++ b/src/nvim/testdir/test_signs.vim
@@ -126,6 +126,10 @@ func Test_sign()
" call assert_fails("sign define Sign4 text= linehl=Comment", 'E239:')
call assert_fails("sign define Sign4 text=\\ ab linehl=Comment", 'E239:')
+ call assert_fails("sign define Sign4 linehl=", 'E1249: Group name missing for linehl')
+ call assert_fails("sign define Sign4 culhl=", 'E1249: Group name missing for culhl')
+ call assert_fails("sign define Sign4 texthl=", 'E1249: Group name missing for texthl')
+
" define sign with whitespace
sign define Sign4 text=\ X linehl=Comment
sign undefine Sign4