Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromneovim/neovim

Commit433f306

Browse files
rktjmpgithub-actions[bot]
authored andcommitted
fix: use ctermbg/fg instead of bg/fg when use_rgb is false
(cherry picked from commitd76ecae)
1 parent30ae06c commit433f306

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/nvim/highlight.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -944,9 +944,9 @@ HlAttrs dict2hlattrs(Dict(highlight) *dict, bool use_rgb, int *link_id, Error *e
944944
hlattrs.cterm_fg_color=ctermfg==-1 ?0 :ctermfg+1;
945945
hlattrs.cterm_ae_attr=cterm_mask;
946946
}else {
947+
hlattrs.cterm_bg_color=ctermbg==-1 ?0 :ctermbg+1;
948+
hlattrs.cterm_fg_color=ctermfg==-1 ?0 :ctermfg+1;
947949
hlattrs.cterm_ae_attr=cterm_mask;
948-
hlattrs.cterm_bg_color=bg==-1 ?0 :bg+1;
949-
hlattrs.cterm_fg_color=fg==-1 ?0 :fg+1;
950950
}
951951

952952
returnhlattrs;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp