Only run :Startify on DirChanged for changed cwd
Ref: https://github.com/tpope/vim-fugitive/issues/1132
This commit is contained in:
parent
5cd4faf2c6
commit
9c26c7e8dc
|
@ -153,7 +153,8 @@ function! startify#insane_in_the_membrane() abort
|
||||||
set filetype=startify
|
set filetype=startify
|
||||||
|
|
||||||
if exists('##DirChanged')
|
if exists('##DirChanged')
|
||||||
autocmd startify DirChanged <buffer> Startify
|
let b:startify.cwd = getcwd()
|
||||||
|
autocmd startify DirChanged <buffer> if getcwd() !=# get(get(b:, 'startify', {}), 'cwd') | Startify | endif
|
||||||
endif
|
endif
|
||||||
if exists('#User#Startified')
|
if exists('#User#Startified')
|
||||||
doautocmd <nomodeline> User Startified
|
doautocmd <nomodeline> User Startified
|
||||||
|
|
Loading…
Reference in a new issue