From 72afc7b0399834bc2b6c3a45f761b548f47b3cab Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Thu, 18 May 2017 07:59:37 +0200 Subject: Add strikethrough highlight method. --- source/helper.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/helper.c') diff --git a/source/helper.c b/source/helper.c index d31a4e20..e14a5e68 100644 --- a/source/helper.c +++ b/source/helper.c @@ -423,6 +423,12 @@ PangoAttrList *helper_token_match_get_pango_attr ( ThemeHighlight th, GRegex **t pa->end_index = end; pango_attr_list_insert ( retv, pa ); } + if ( th.style & HL_STRIKETHROUGH ) { + PangoAttribute *pa = pango_attr_strikethrough_new ( TRUE ); + pa->start_index = start; + pa->end_index = end; + pango_attr_list_insert ( retv, pa ); + } if ( th.style & HL_ITALIC ) { PangoAttribute *pa = pango_attr_style_new ( PANGO_STYLE_ITALIC ); pa->start_index = start; -- cgit v1.2.3