aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2021-12-08 21:35:14 -0500
committerJames McCoy <jamessan@jamessan.com>2021-12-08 21:48:00 -0500
commitf3fb77c40262f47e30ebefec547f5c6f83ff58e6 (patch)
treea1e77a6bd4a4f2034e1c2286e741c77a5ba80cd7 /src/nvim/testdir
parented35e20640ca1d5412550a2df5930b090acee57c (diff)
downloadrneovim-f3fb77c40262f47e30ebefec547f5c6f83ff58e6.tar.gz
rneovim-f3fb77c40262f47e30ebefec547f5c6f83ff58e6.tar.bz2
rneovim-f3fb77c40262f47e30ebefec547f5c6f83ff58e6.zip
vim-patch:8.2.3757: an overlong highlight group name is silently truncated
Problem: An overlong highlight group name is silently truncated. Solution: Give an error if the name is too long. (closes vim/vim#9289) https://github.com/vim/vim/commit/f7f7aaf8aaad34a38d3f159e031c5bcf3394f8f1
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_highlight.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_highlight.vim b/src/nvim/testdir/test_highlight.vim
index c38bfa5677..899eb530ec 100644
--- a/src/nvim/testdir/test_highlight.vim
+++ b/src/nvim/testdir/test_highlight.vim
@@ -661,6 +661,13 @@ function Test_no_space_before_xxx()
let &columns = l:org_columns
endfunction
+" Test for :highlight command errors
+func Test_highlight_cmd_errors()
+ if has('gui_running') || has('nvim')
+ call assert_fails('hi ' .. repeat('a', 201) .. ' ctermfg=black', 'E1249:')
+ endif
+endfunc
+
" Test for using RGB color values in a highlight group
func Test_xxlast_highlight_RGB_color()
CheckCanRunGui