mirror of
https://github.com/junegunn/goyo.vim.git
synced 2025-11-17 07:43:42 -05:00
Only reload the colorscheme if one is defined.
E.g. work with the default one which doesn't define `g:colors_name`.
This commit is contained in:
@@ -259,7 +259,9 @@ function! s:goyo_off()
|
||||
for [k, v] in items(goyo_revert)
|
||||
execute printf("let &%s = %s", k, string(v))
|
||||
endfor
|
||||
execute 'colo '. g:colors_name
|
||||
if exists('g:colors_name')
|
||||
execute 'colo '. g:colors_name
|
||||
endif
|
||||
|
||||
if goyo_disabled_gitgutter
|
||||
silent! GitGutterEnable
|
||||
|
||||
Reference in New Issue
Block a user