Skip to content

Commit

Permalink
syntax: foo=NONE clears hi group
Browse files Browse the repository at this point in the history
Closes #4767
  • Loading branch information
AdnoC authored and justinmk committed May 21, 2016
1 parent 8e20ba9 commit 1f4af4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/nvim/syntax.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 1f4af4c

Please sign in to comment.