Set b:sy_path also for SessionLoadPost events

Closes #101.
This commit is contained in:
Marco Hinz 2013-12-27 14:45:44 +01:00
parent 39d5614596
commit a4e06fb303

View File

@ -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('<afile>:p'))
autocmd BufRead,BufWritePost * call sy#start(b:sy_path)
autocmd BufDelete * call sy#stop(expand('<abuf>'))
autocmd VimEnter * call sy#highlight#setup()
autocmd BufRead,BufEnter,SessionLoadPost * let b:sy_path = resolve(expand('<afile>:p'))
autocmd BufRead,BufWritePost * call sy#start(b:sy_path)
autocmd BufDelete * call sy#stop(expand('<abuf>'))
autocmd QuickFixCmdPre *vimgrep* let g:signify_locked = 1
autocmd QuickFixCmdPost *vimgrep* let g:signify_locked = 0