Load default color scheme when g:colors_name is not defined (#14)

This commit is contained in:
Junegunn Choi
2014-01-12 22:06:56 +09:00
parent 31bcf63af8
commit f7abffb9bb

View File

@@ -259,9 +259,7 @@ 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
execute 'colo '. get(g:, 'colors_name', 'default')
if goyo_disabled_gitgutter
silent! GitGutterEnable