aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-09-14 16:32:38 +0200
committerGitHub <noreply@github.com>2019-09-14 16:32:38 +0200
commit8c88d98df955ebf2fb93506c19ce2af82e24a2df (patch)
tree81feecb988f5e19029d22e542ff7cf15f85d9822 /src
parent9cf8cf605d85ec043d4e39f73ac42c7482c6f901 (diff)
downloadrneovim-8c88d98df955ebf2fb93506c19ce2af82e24a2df.tar.gz
rneovim-8c88d98df955ebf2fb93506c19ce2af82e24a2df.tar.bz2
rneovim-8c88d98df955ebf2fb93506c19ce2af82e24a2df.zip
vim-patch:8.1.2023: no test for synIDattr() returning "strikethrough" (#11018)
Problem: No test for synIDattr() returning "strikethrough". Solution: Extend the synIDattr() test. (Jaskaran Singh, closes vim/vim#4929) https://github.com/vim/vim/commit/dcb2b9cb085288d2a2e4cc31abc591ade04e782e
Diffstat (limited to 'src')
-rw-r--r--src/nvim/testdir/test_syn_attr.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_syn_attr.vim b/src/nvim/testdir/test_syn_attr.vim
index 64aab3411d..353054fec8 100644
--- a/src/nvim/testdir/test_syn_attr.vim
+++ b/src/nvim/testdir/test_syn_attr.vim
@@ -9,11 +9,14 @@ func Test_missing_attr()
hi Mine cterm=standout gui=undercurl
call assert_equal('1', synIDattr(hlID("Mine"), "standout", 'cterm'))
call assert_equal('1', synIDattr(hlID("Mine"), "undercurl", 'gui'))
+ hi Mine gui=strikethrough
+ call assert_equal('1', synIDattr(hlID("Mine"), "strikethrough", 'gui'))
hi Mine cterm=NONE gui=NONE
call assert_equal('', synIDattr(hlID("Mine"), "italic", 'cterm'))
call assert_equal('', synIDattr(hlID("Mine"), "inverse", 'cterm'))
call assert_equal('', synIDattr(hlID("Mine"), "standout", 'cterm'))
call assert_equal('', synIDattr(hlID("Mine"), "undercurl", 'gui'))
+ call assert_equal('', synIDattr(hlID("Mine"), "strikethrough", 'gui'))
if has('gui')
let fontname = getfontname()