Skip to content

Commit

Permalink
[vim] Use cterm colors on Windows (#1793)
Browse files Browse the repository at this point in the history
Truecolor does not work on default Windows terminal.
It is a problem in neovim GUIs.

sainnhe/edge#5 (comment)
  • Loading branch information
janlazo authored and junegunn committed Dec 15, 2019
1 parent a9906c7 commit aa0e10e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/fzf.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aa0e10e

Please sign in to comment.