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)
|
for [k, v] in items(goyo_revert)
|
||||||
execute printf("let &%s = %s", k, string(v))
|
execute printf("let &%s = %s", k, string(v))
|
||||||
endfor
|
endfor
|
||||||
execute 'colo '. g:colors_name
|
if exists('g:colors_name')
|
||||||
|
execute 'colo '. g:colors_name
|
||||||
|
endif
|
||||||
|
|
||||||
if goyo_disabled_gitgutter
|
if goyo_disabled_gitgutter
|
||||||
silent! GitGutterEnable
|
silent! GitGutterEnable
|
||||||
|
|||||||
Reference in New Issue
Block a user