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
|
let args = '--cleanup=strip '.args
|
||||||
endif
|
endif
|
||||||
if bufname('%') == '' && line('$') == 1 && getline(1) == '' && !&mod
|
if bufname('%') == '' && line('$') == 1 && getline(1) == '' && !&mod
|
||||||
keepalt edit `=msgfile`
|
execute 'keepalt edit '.s:fnameescape(msgfile)
|
||||||
elseif s:buffer().type() ==# 'index'
|
elseif s:buffer().type() ==# 'index'
|
||||||
keepalt edit `=msgfile`
|
execute 'keepalt edit '.s:fnameescape(msgfile)
|
||||||
execute (search('^#','n')+1).'wincmd+'
|
execute (search('^#','n')+1).'wincmd+'
|
||||||
setlocal nopreviewwindow
|
setlocal nopreviewwindow
|
||||||
else
|
else
|
||||||
keepalt split `=msgfile`
|
execute 'keepalt split '.s:fnameescape(msgfile)
|
||||||
endif
|
endif
|
||||||
let b:fugitive_commit_arguments = args
|
let b:fugitive_commit_arguments = args
|
||||||
setlocal bufhidden=delete filetype=gitcommit
|
setlocal bufhidden=delete filetype=gitcommit
|
||||||
|
|||||||
Reference in New Issue
Block a user