From 779e3cc5b551d791f9f39df8129a95365bca9da7 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 17 Mar 2025 17:46:56 +0900 Subject: [PATCH] [vim] Use 24-bit colors on gvim even when &termguicolors is off Close #2563 --- plugin/fzf.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index b865162a..63857ce3 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -358,7 +358,7 @@ endfunction function! s:get_color(attr, ...) " Force 24 bit colors: g:fzf_force_termguicolors (temporary workaround for https://github.com/junegunn/fzf.vim/issues/1152) - let gui = get(g:, 'fzf_force_termguicolors', 0) || (!s:is_win && !has('win32unix') && has('termguicolors') && &termguicolors) + let gui = get(g:, 'fzf_force_termguicolors', 0) || (!s:is_win && !has('win32unix') && (has('gui_running') || has('termguicolors') && &termguicolors)) let fam = gui ? 'gui' : 'cterm' let pat = gui ? '^#[a-f0-9]\+' : '^[0-9]\+$' for group in a:000