mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-23 20:45:31 -07:00
Need to set modifiable for reloading commit content (#255)
This commit is contained in:
parent
51cf219213
commit
69d6c9d545
2
plug.vim
2
plug.vim
@ -1901,7 +1901,7 @@ function! s:preview_commit()
|
|||||||
|
|
||||||
execute 'pedit' sha
|
execute 'pedit' sha
|
||||||
wincmd P
|
wincmd P
|
||||||
setlocal filetype=git buftype=nofile nobuflisted
|
setlocal filetype=git buftype=nofile nobuflisted modifiable
|
||||||
execute 'silent read !cd' s:shellesc(g:plugs[name].dir) '&& git show --pretty=medium' sha
|
execute 'silent read !cd' s:shellesc(g:plugs[name].dir) '&& git show --pretty=medium' sha
|
||||||
normal! gg"_dd
|
normal! gg"_dd
|
||||||
setlocal nomodifiable
|
setlocal nomodifiable
|
||||||
|
Loading…
Reference in New Issue
Block a user