Skip to content

Commit 779e3cc

Browse files
committed
[vim] Use 24-bit colors on gvim even when &termguicolors is off
Close #2563
1 parent 3f3d1ef commit 779e3cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/fzf.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ endfunction
358358

359359
function! s:get_color(attr, ...)
360360
" Force 24 bit colors: g:fzf_force_termguicolors (temporary workaround for https://github.com/junegunn/fzf.vim/issues/1152)
361-
let gui = get(g:, 'fzf_force_termguicolors', 0) || (!s:is_win && !has('win32unix') && has('termguicolors') && &termguicolors)
361+
let gui = get(g:, 'fzf_force_termguicolors', 0) || (!s:is_win && !has('win32unix') && (has('gui_running') || has('termguicolors') && &termguicolors))
362362
let fam = gui ? 'gui' : 'cterm'
363363
let pat = gui ? '^#[a-f0-9]\+' : '^[0-9]\+$'
364364
for group in a:000

0 commit comments

Comments
 (0)