From 35a4fffe9d702eba16dd7a5c392434b7e6c6708c Mon Sep 17 00:00:00 2001 From: jdhao Date: Sat, 26 Oct 2019 17:23:24 +0800 Subject: [PATCH] Fix a bug about termguicolors If we use nvim-qt, the TERM env variable may be empty. We should check if we are using the GUI. --- ui.vim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui.vim b/ui.vim index 021c20a..2c00558 100644 --- a/ui.vim +++ b/ui.vim @@ -2,10 +2,9 @@ "{{ General settings about colors " Enable true colors support (Do not use this option if your terminal does not " support true colors! For a comprehensive list of terminals supporting true -" colors, see https://github.com/termstandard/colors and -" https://bit.ly/2InF97t) +" colors, see https://github.com/termstandard/colors and https://bit.ly/2InF97t. if exists("&termguicolors") - if $TERM == "xterm-256color" + if $TERM == "xterm-256color" || exists('g:GuiLoaded') set termguicolors else set notermguicolors