folds: Make sure the missing views do not raise exceptions

This commit is contained in:
Tomas Babej 2016-05-14 22:35:03 +02:00
parent 9feb8f0dcd
commit 74a81250c3

View file

@ -33,7 +33,7 @@ augroup taskwiki
" Save and load the view to preserve folding, if desired
if !exists('g:taskwiki_dont_preserve_folds')
execute "autocmd BufWinLeave *.".expand('%:e')." mkview"
execute "autocmd BufWinEnter *.".expand('%:e')." silent loadview"
execute "autocmd BufWinEnter *.".expand('%:e')." silent! loadview"
execute "autocmd BufWinEnter *.".expand('%:e')." doautocmd SessionLoadPost *.".expand('%:e')
endif
augroup END