aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2022-06-30 00:48:46 +1200
committerTom Ryder <tom@sanctum.geek.nz>2022-06-30 00:48:46 +1200
commitabb8eff21d7c05cd22b3edba81ee1e8745c9236c (patch)
tree40c900ec4fafaa4f04a7ae23b151d00ab2c515ab
parentAdd missing space in vimrc conditional (diff)
downloaddotfiles-abb8eff21d7c05cd22b3edba81ee1e8745c9236c.tar.gz
dotfiles-abb8eff21d7c05cd22b3edba81ee1e8745c9236c.zip
Explicitly cast terminal color count for comparing
Required by Vim script, which treats this value as a string, but a good call anyway.
-rw-r--r--vim/vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 7dccabfa..21df7d74 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -987,7 +987,7 @@ endif
" it.
"
if &background ==# 'dark'
- \ && (has('gui_running') || &t_Co >= 256)
+ \ && (has('gui_running') || str2nr(&t_Co) >= 256)
\ && globpath(&runtimepath, 'colors/sahara.vim') !=# ''
colorscheme sahara
endif