aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/highlight.c
diff options
context:
space:
mode:
authorJaskaran Singh <jaskaransingh7654321@gmail.com>2019-09-14 03:16:19 +0530
committerJustin M. Keyes <justinkz@gmail.com>2019-09-13 14:46:19 -0700
commit3afb397407af3c94fc82d694186e8d451e625237 (patch)
tree6178036f4d81fd706eff8926f96876eb195faeb4 /src/nvim/highlight.c
parent35341b34b835eeb184ac9f0e2078ce31f6612fd7 (diff)
downloadrneovim-3afb397407af3c94fc82d694186e8d451e625237.tar.gz
rneovim-3afb397407af3c94fc82d694186e8d451e625237.tar.bz2
rneovim-3afb397407af3c94fc82d694186e8d451e625237.zip
syntax, TUI: support "strikethrough"
fix #3436 Includes: vim-patch:8.0.1038: strike-through text not supported
Diffstat (limited to 'src/nvim/highlight.c')
-rw-r--r--src/nvim/highlight.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/highlight.c b/src/nvim/highlight.c
index f44cd5cdab..093cc4923b 100644
--- a/src/nvim/highlight.c
+++ b/src/nvim/highlight.c
@@ -598,6 +598,10 @@ Dictionary hlattrs2dict(HlAttrs ae, bool use_rgb)
PUT(hl, "reverse", BOOLEAN_OBJ(true));
}
+ if (mask & HL_STRIKETHROUGH) {
+ PUT(hl, "strikethrough", BOOLEAN_OBJ(true));
+ }
+
if (use_rgb) {
if (ae.rgb_fg_color != -1) {
PUT(hl, "foreground", INTEGER_OBJ(ae.rgb_fg_color));