mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 14:23:51 -05:00
Fix restoration of :lcd after :Gblame
The restore of :lcd was happening after the split, meaning it was taking effect in the wrong window.
This commit is contained in:
@@ -1218,6 +1218,10 @@ function! s:Blame(bang,line1,line2,count,args) abort
|
||||
else
|
||||
silent! execute '%write !'.basecmd.' > '.temp.' 2> '.error
|
||||
endif
|
||||
if exists('l:dir')
|
||||
execute cd.'`=dir`'
|
||||
unlet dir
|
||||
endif
|
||||
if v:shell_error
|
||||
call s:throw(join(readfile(error),"\n"))
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user