mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-23 03:19:01 +00: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:
parent
a9906c7c29
commit
aa0e10ead7
@ -244,7 +244,7 @@ function! s:common_sink(action, lines) abort
|
||||
endfunction
|
||||
|
||||
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 pat = gui ? '^#[a-f0-9]\+' : '^[0-9]\+$'
|
||||
for group in a:000
|
||||
|
Loading…
Reference in New Issue
Block a user