PlugDiff: Press enter on the name of a plugin to see the full diff

Close #1174
This commit is contained in:
Junegunn Choi
2022-05-03 23:10:00 +09:00
parent be55ec46b5
commit 8fdabfba0b
2 changed files with 22 additions and 6 deletions

View File

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