Skip to content

Commit

Permalink
- only require 'termguicolors' outside of gvim
Browse files Browse the repository at this point in the history
  • Loading branch information
BourgeoisBear committed Jan 11, 2022
1 parent 7db5f6c commit a978dcf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions autoload/clrzr.vim
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ set cpo&vim
" - change colors, or enable/disable, with two views into same buffer to reproduce E966
" TODO: allowed filetypes list?
" TODO: sign_column (bigger pls, :h sign-commands)?
" TODO: color change operation


" --------------------------- CONSTANTS ---------------------------
Expand Down
8 changes: 5 additions & 3 deletions plugin/clrzr.vim
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ if !has('textprop')
finish
endif

if !(has('termguicolors') && &termguicolors)
echoerr 'clrzr disabled: termguicolors not enabled and/or available'
finish
if !has('gui_running')
if !(has('termguicolors') && &termguicolors)
echoerr 'clrzr disabled: termguicolors not enabled and/or available'
finish
endif
endif

if !exists('##TextChanged')
Expand Down

0 comments on commit a978dcf

Please sign in to comment.