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:
Tim Pope
2010-11-05 18:17:09 -04:00
parent b3f38c4886
commit 0b4e32180b

View File

@@ -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