changeset 18056:624109b3766e v8.1.2023

patch 8.1.2023: no test for synIDattr() returning "strikethrough" Commit: https://github.com/vim/vim/commit/dcb2b9cb085288d2a2e4cc31abc591ade04e782e Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 13 21:26:39 2019 +0200 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 https://github.com/vim/vim/issues/4929)
author Bram Moolenaar <Bram@vim.org>
date Fri, 13 Sep 2019 21:30:03 +0200
parents 9ca92f1defef
children 3e3c6f8d6d4c
files src/testdir/test_syn_attr.vim src/version.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_syn_attr.vim
+++ b/src/testdir/test_syn_attr.vim
@@ -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()
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2023,
+/**/
     2022,
 /**/
     2021,