cd to repo root when in preview window on preview commit
This commit is contained in:
parent
49851436ff
commit
a868ee4c11
10
plug.vim
10
plug.vim
|
@ -1176,14 +1176,14 @@ function! s:preview_commit()
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
execute 'cd '.s:esc(g:plugs[name].dir)
|
execute 'pedit' sha
|
||||||
execute 'pedit '.sha
|
|
||||||
wincmd P
|
wincmd P
|
||||||
setlocal filetype=git buftype=nofile nobuflisted
|
setlocal filetype=git buftype=nofile nobuflisted
|
||||||
execute 'silent read !git show '.sha
|
execute 'cd' s:esc(g:plugs[name].dir)
|
||||||
normal! ggdd
|
execute 'silent read !git show' sha
|
||||||
wincmd p
|
|
||||||
cd -
|
cd -
|
||||||
|
normal! gg"_dd
|
||||||
|
wincmd p
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:section(flags)
|
function! s:section(flags)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user