mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-15 14:53:51 -05:00
@@ -818,13 +818,13 @@ function! s:Commit(args) abort
|
||||
let args = '--cleanup=strip '.args
|
||||
endif
|
||||
if bufname('%') == '' && line('$') == 1 && getline(1) == '' && !&mod
|
||||
keepalt edit `=msgfile`
|
||||
execute 'keepalt edit '.s:fnameescape(msgfile)
|
||||
elseif s:buffer().type() ==# 'index'
|
||||
keepalt edit `=msgfile`
|
||||
execute 'keepalt edit '.s:fnameescape(msgfile)
|
||||
execute (search('^#','n')+1).'wincmd+'
|
||||
setlocal nopreviewwindow
|
||||
else
|
||||
keepalt split `=msgfile`
|
||||
execute 'keepalt split '.s:fnameescape(msgfile)
|
||||
endif
|
||||
let b:fugitive_commit_arguments = args
|
||||
setlocal bufhidden=delete filetype=gitcommit
|
||||
|
||||
Reference in New Issue
Block a user