From a4e06fb303c9da81c0273678d0d29bc72500bbcf Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Fri, 27 Dec 2013 14:45:44 +0100 Subject: [PATCH] Set b:sy_path also for SessionLoadPost events Closes #101. --- plugin/signify.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/signify.vim b/plugin/signify.vim index 4e89458..460683f 100644 --- a/plugin/signify.vim +++ b/plugin/signify.vim @@ -13,10 +13,10 @@ let g:signify_locked = 0 augroup signify autocmd! - autocmd VimEnter * call sy#highlight#setup() - autocmd BufRead,BufEnter * let b:sy_path = resolve(expand(':p')) - autocmd BufRead,BufWritePost * call sy#start(b:sy_path) - autocmd BufDelete * call sy#stop(expand('')) + autocmd VimEnter * call sy#highlight#setup() + autocmd BufRead,BufEnter,SessionLoadPost * let b:sy_path = resolve(expand(':p')) + autocmd BufRead,BufWritePost * call sy#start(b:sy_path) + autocmd BufDelete * call sy#stop(expand('')) autocmd QuickFixCmdPre *vimgrep* let g:signify_locked = 1 autocmd QuickFixCmdPost *vimgrep* let g:signify_locked = 0