mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-07 12:44:39 +08:00
1 parent
6239f5ed8e
commit
0cd33c6170
2 files changed
+8
-6
No files matched your search
@@ -1015,6 +1015,8 @@ function! s:Commit(args) abort
|
||||
endif
|
||||
if bufname('%') == '' && line('$') == 1 && getline(1) == '' && !&mod
|
||||
execute 'keepalt edit '.s:fnameescape(msgfile)
|
||||
elseif a:args =~# '\%(^\| \)-\%(-verbose\|\w*v\)\>'
|
||||
execute 'keepalt tabedit '.s:fnameescape(msgfile)
|
||||
elseif s:buffer().type() ==# 'index'
|
||||
execute 'keepalt edit '.s:fnameescape(msgfile)
|
||||
execute (search('^#','n')+1).'wincmd+'
|
||||
|
||||
Reference in new issue
Block a user