Skip to content
forked from neovim/neovim

Commit

Permalink
fix: use ctermbg/fg instead of bg/fg when use_rgb is false
Browse files Browse the repository at this point in the history
(cherry picked from commit d76ecae)
  • Loading branch information
rktjmp authored and github-actions[bot] committed Jun 18, 2022
1 parent 30ae06c commit 433f306
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nvim/highlight.c
Original file line number Diff line number Diff line change
Expand Up @@ -944,9 +944,9 @@ HlAttrs dict2hlattrs(Dict(highlight) *dict, bool use_rgb, int *link_id, Error *e
hlattrs.cterm_fg_color = ctermfg == -1 ? 0 : ctermfg + 1;
hlattrs.cterm_ae_attr = cterm_mask;
} else {
hlattrs.cterm_bg_color = ctermbg == -1 ? 0 : ctermbg + 1;
hlattrs.cterm_fg_color = ctermfg == -1 ? 0 : ctermfg + 1;
hlattrs.cterm_ae_attr = cterm_mask;
hlattrs.cterm_bg_color = bg == -1 ? 0 : bg + 1;
hlattrs.cterm_fg_color = fg == -1 ? 0 : fg + 1;
}

return hlattrs;
Expand Down

0 comments on commit 433f306

Please sign in to comment.