]> granicus.if.org Git - vim/commitdiff
patch 8.1.2023: no test for synIDattr() returning "strikethrough" v8.1.2023
authorBram Moolenaar <Bram@vim.org>
Fri, 13 Sep 2019 19:26:39 +0000 (21:26 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 13 Sep 2019 19:26:39 +0000 (21:26 +0200)
Problem:    No test for synIDattr() returning "strikethrough".
Solution:   Extend the synIDattr() test. (Jaskaran Singh, closes #4929)

src/testdir/test_syn_attr.vim
src/version.c

index cc2067818c98394fcc34166b1619bcbf3e7ac005..a27a2cbe479106072732098e94a3eeb661ed0039 100644 (file)
@@ -13,6 +13,8 @@ func Test_missing_attr()
   call assert_equal('1', synIDattr(hlID("Mine"), "underline", 'term'))
   call assert_equal('1', synIDattr(hlID("Mine"), "standout", 'cterm'))
   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
   call assert_equal('', synIDattr(hlID("Mine"), "bold", 'term'))
   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"), "standout", 'cterm'))
   call assert_equal('', synIDattr(hlID("Mine"), "undercurl", 'gui'))
+  call assert_equal('', synIDattr(hlID("Mine"), "strikethrough", 'gui'))
 
   if has('gui')
     let fontname = getfontname()
index e5070c6bdb1f2bf62a8bf3faa9ab47ff489aa6cb..31f0bf443e8978257ec113c696f8e815fc8ea621 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2023,
 /**/
     2022,
 /**/