mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-07 12:44:39 +08: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:
1 parent
b3f38c4886
commit
0b4e32180b
1 file changed
+4
@@ -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