do not set colors once again at every buffer switch

Now colors only get set at plugin loading and when :colo is used.
This commit is contained in:
Marco Hinz 2013-03-11 02:01:00 +01:00
parent 06c7f1096b
commit fa4c921557

View File

@ -91,8 +91,7 @@ endif
aug signify aug signify
au! au!
au ColorScheme * call s:colors_set() au ColorScheme * call s:colors_set()
au BufWritePost,FocusGained * call s:start(resolve(expand('<afile>:p'))) au BufWritePost,BufEnter,FocusGained * call s:start(resolve(expand('<afile>:p')))
au BufEnter * let s:colors_set = 0 | call s:start(resolve(expand('<afile>:p')))
aug END aug END
com! -nargs=0 -bar SignifyToggle call s:toggle_signify() com! -nargs=0 -bar SignifyToggle call s:toggle_signify()
@ -146,7 +145,7 @@ function! s:start(path) abort
let s:sy[a:path].last_jump_was_next = -1 let s:sy[a:path].last_jump_was_next = -1
endif endif
if s:sign_overwrite == 0 if !s:sign_overwrite
call s:sign_get_others(a:path) call s:sign_get_others(a:path)
endif endif