mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-01 20:52:06 -07:00
[vim] Use cterm colors on Windows (#1793)
Truecolor does not work on default Windows terminal. It is a problem in neovim GUIs. https://github.com/sainnhe/edge/issues/5#issuecomment-565748240
This commit is contained in:
committed by
Junegunn Choi
parent
a9906c7c29
commit
aa0e10ead7
@@ -244,7 +244,7 @@ function! s:common_sink(action, lines) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:get_color(attr, ...)
|
function! s:get_color(attr, ...)
|
||||||
let gui = has('termguicolors') && &termguicolors
|
let gui = !s:is_win && !has('win32unix') && has('termguicolors') && &termguicolors
|
||||||
let fam = gui ? 'gui' : 'cterm'
|
let fam = gui ? 'gui' : 'cterm'
|
||||||
let pat = gui ? '^#[a-f0-9]\+' : '^[0-9]\+$'
|
let pat = gui ? '^#[a-f0-9]\+' : '^[0-9]\+$'
|
||||||
for group in a:000
|
for group in a:000
|
||||||
|
Reference in New Issue
Block a user