Fix autoloading of sessions from bookmarked directories
References #144.
This commit is contained in:
parent
aea086205c
commit
362fa1d957
2 changed files with 5 additions and 1 deletions
|
@ -570,7 +570,9 @@ function! s:check_user_options() abort
|
|||
let session = path . s:sep .'Session.vim'
|
||||
|
||||
" change to VCS root directory
|
||||
if get(g:, 'startify_change_to_vcs_root')
|
||||
if get(g:, 'startify_session_autoload') && filereadable(session)
|
||||
execute 'source' session
|
||||
elseif get(g:, 'startify_change_to_vcs_root')
|
||||
call s:cd_to_vcs_root(path)
|
||||
" change directory
|
||||
elseif get(g:, 'startify_change_to_dir', 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue