mirror of
https://github.com/junegunn/vim-plug.git
synced 2025-12-06 09:04:23 +08:00
PlugDiff: Press enter on the name of a plugin to see the full diff
Close #1174
This commit is contained in:
@@ -393,6 +393,14 @@ Execute (New commits on remote, PlugUpdate, then PlugDiff):
|
||||
let lnum = line('.')
|
||||
AssertEqual 3, col('.')
|
||||
|
||||
" Open full diff (empty)
|
||||
execute "normal \<cr>"
|
||||
wincmd P
|
||||
AssertEqual 1, &previewwindow
|
||||
AssertEqual 'git', &filetype
|
||||
AssertEqual [''], getline(1, '$')
|
||||
pclose
|
||||
|
||||
" Open commit preview
|
||||
execute "normal j\<cr>"
|
||||
wincmd P
|
||||
|
||||
Reference in New Issue
Block a user