Skip to content

Commit a978dcf

Browse files
committed
- only require 'termguicolors' outside of gvim
1 parent 7db5f6c commit a978dcf

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

autoload/clrzr.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ set cpo&vim
2121
" - change colors, or enable/disable, with two views into same buffer to reproduce E966
2222
" TODO: allowed filetypes list?
2323
" TODO: sign_column (bigger pls, :h sign-commands)?
24+
" TODO: color change operation
2425

2526

2627
" --------------------------- CONSTANTS ---------------------------

plugin/clrzr.vim

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ if !has('textprop')
1818
finish
1919
endif
2020

21-
if !(has('termguicolors') && &termguicolors)
22-
echoerr 'clrzr disabled: termguicolors not enabled and/or available'
23-
finish
21+
if !has('gui_running')
22+
if !(has('termguicolors') && &termguicolors)
23+
echoerr 'clrzr disabled: termguicolors not enabled and/or available'
24+
finish
25+
endif
2426
endif
2527

2628
if !exists('##TextChanged')

0 commit comments

Comments
 (0)