Created
June 28, 2011 14:13
-
-
Save pocket7878/1051217 to your computer and use it in GitHub Desktop.
little-patch-for unite-colorscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git autoload/unite/sources/colorscheme.vim autoload/unite/sources/colorscheme.vim | |
index 63cea36..8cca97c 100644 | |
--- autoload/unite/sources/colorscheme.vim | |
+++ autoload/unite/sources/colorscheme.vim | |
@@ -8,7 +8,11 @@ let s:unite_source = { | |
\ } | |
function! s:unite_source.hooks.on_init(args, context) | |
- let s:beforecolor = g:colors_name | |
+ if exists('g:colors_name') | |
+ let s:beforecolor = g:colors_name | |
+ else | |
+ let s:beforecolor = "default" | |
+ endif | |
endfunction | |
function! s:unite_source.hooks.on_close(args, context) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment