diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-09-26 14:20:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-26 14:20:10 +0200 |
commit | fe95037cdb9b0294ca24dbd0ff82c8462d051307 (patch) | |
tree | ab7ad7fced1d29b5037bacc667bbaed6ece9b272 /src/nvim/highlight_group.c | |
parent | 4db77017fb7ab9321817674a5f5533df4cd03f3f (diff) | |
parent | f8ea49cfe1f4f3ed30da160d346553f0949ec1de (diff) | |
download | rneovim-fe95037cdb9b0294ca24dbd0ff82c8462d051307.tar.gz rneovim-fe95037cdb9b0294ca24dbd0ff82c8462d051307.tar.bz2 rneovim-fe95037cdb9b0294ca24dbd0ff82c8462d051307.zip |
Merge pull request #25229 from glepnir/20323
fix(highlight): add force in nvim_set_hl
Diffstat (limited to 'src/nvim/highlight_group.c')
-rw-r--r-- | src/nvim/highlight_group.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/highlight_group.c b/src/nvim/highlight_group.c index 84cf19ba69..eeed58a9ab 100644 --- a/src/nvim/highlight_group.c +++ b/src/nvim/highlight_group.c @@ -799,11 +799,10 @@ int lookup_color(const int idx, const bool foreground, TriState *const boldp) void set_hl_group(int id, HlAttrs attrs, Dict(highlight) *dict, int link_id) { int idx = id - 1; // Index is ID minus one. - bool is_default = attrs.rgb_ae_attr & HL_DEFAULT; // Return if "default" was used and the group already has settings - if (is_default && hl_has_settings(idx, true)) { + if (is_default && hl_has_settings(idx, true) && !dict->force) { return; } |