aboutsummaryrefslogtreecommitdiff
path: root/ui.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-10-18 21:26:25 +0800
committerjdhao <jdhao@hotmail.com>2020-10-18 21:26:25 +0800
commitbe2b01a0b54175e2fbbd34512e88cc20f38416aa (patch)
tree38a714be66d11b00dd5987b6ed926c2eb8c218e6 /ui.vim
parente79c215cb01f6c33d7a646da6d580534a3d94ad7 (diff)
fix true color support issue
Diffstat (limited to 'ui.vim')
-rw-r--r--ui.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.vim b/ui.vim
index 821f9ed..5a571a8 100644
--- a/ui.vim
+++ b/ui.vim
@@ -4,7 +4,7 @@
" support true colors! For a comprehensive list of terminals supporting true
" colors, see https://github.com/termstandard/colors and
" https://gist.github.com/XVilka/8346728.
-if $TERM ==# 'xterm-256color' || exists('g:started_by_firenvim')
+if match($TERM, '^xterm.*') != -1 || exists('g:started_by_firenvim')
set termguicolors
endif
" Use dark background