diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-05-21 01:25:15 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-05-21 01:25:15 -0400 |
commit | 34957f7ab96671b1dbea63e074254a97594c4734 (patch) | |
tree | 0bfe78ab12a4215371f75454e3e9d1be5c9842ad /src | |
parent | 8e20ba9fbd691955fa20bdba3dd5ff66d16f923c (diff) | |
parent | 582fb03f5149bca8f1f52dddbbd0c3e8b5276467 (diff) | |
download | rneovim-34957f7ab96671b1dbea63e074254a97594c4734.tar.gz rneovim-34957f7ab96671b1dbea63e074254a97594c4734.tar.bz2 rneovim-34957f7ab96671b1dbea63e074254a97594c4734.zip |
Merge #4800 'syntax: foo=NONE should clear hi group'
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/syntax.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index 9a5484704e..1f9dbd8228 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -6972,6 +6972,9 @@ set_hl_attr ( || at_en.rgb_sp_color != -1 || at_en.cterm_ae_attr != 0 || at_en.rgb_ae_attr != 0) { sgp->sg_attr = get_attr_entry(&at_en); + } else { + // If all the fields are cleared, clear the attr field back to default value + sgp->sg_attr = 0; } } |