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:
Lucas Stadler
2014-01-12 13:25:23 +01:00
parent 6b4ff54488
commit 31bcf63af8

View File

@@ -259,7 +259,9 @@ function! s:goyo_off()
for [k, v] in items(goyo_revert)
execute printf("let &%s = %s", k, string(v))
endfor
if exists('g:colors_name')
execute 'colo '. g:colors_name
endif
if goyo_disabled_gitgutter
silent! GitGutterEnable