mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.1.2023: no test for synIDattr() returning "strikethrough"
Problem: No test for synIDattr() returning "strikethrough". Solution: Extend the synIDattr() test. (Jaskaran Singh, closes #4929)
This commit is contained in:
@@ -13,6 +13,8 @@ func Test_missing_attr()
|
|||||||
call assert_equal('1', synIDattr(hlID("Mine"), "underline", 'term'))
|
call assert_equal('1', synIDattr(hlID("Mine"), "underline", 'term'))
|
||||||
call assert_equal('1', synIDattr(hlID("Mine"), "standout", 'cterm'))
|
call assert_equal('1', synIDattr(hlID("Mine"), "standout", 'cterm'))
|
||||||
call assert_equal('1', synIDattr("Mine"->hlID(), "undercurl", 'gui'))
|
call assert_equal('1', synIDattr("Mine"->hlID(), "undercurl", 'gui'))
|
||||||
|
hi Mine gui=strikethrough
|
||||||
|
call assert_equal('1', synIDattr(hlID("Mine"), "strikethrough", 'gui'))
|
||||||
hi Mine term=NONE cterm=NONE gui=NONE
|
hi Mine term=NONE cterm=NONE gui=NONE
|
||||||
call assert_equal('', synIDattr(hlID("Mine"), "bold", 'term'))
|
call assert_equal('', synIDattr(hlID("Mine"), "bold", 'term'))
|
||||||
call assert_equal('', synIDattr(hlID("Mine"), "italic", 'cterm'))
|
call assert_equal('', synIDattr(hlID("Mine"), "italic", 'cterm'))
|
||||||
@@ -21,6 +23,7 @@ func Test_missing_attr()
|
|||||||
call assert_equal('', synIDattr(hlID("Mine"), "underline", 'term'))
|
call assert_equal('', synIDattr(hlID("Mine"), "underline", 'term'))
|
||||||
call assert_equal('', synIDattr(hlID("Mine"), "standout", 'cterm'))
|
call assert_equal('', synIDattr(hlID("Mine"), "standout", 'cterm'))
|
||||||
call assert_equal('', synIDattr(hlID("Mine"), "undercurl", 'gui'))
|
call assert_equal('', synIDattr(hlID("Mine"), "undercurl", 'gui'))
|
||||||
|
call assert_equal('', synIDattr(hlID("Mine"), "strikethrough", 'gui'))
|
||||||
|
|
||||||
if has('gui')
|
if has('gui')
|
||||||
let fontname = getfontname()
|
let fontname = getfontname()
|
||||||
|
@@ -757,6 +757,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2023,
|
||||||
/**/
|
/**/
|
||||||
2022,
|
2022,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user