mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -05:00
Don't clobber alternate file when committing
This commit is contained in:
@@ -732,7 +732,7 @@ function! s:Commit(args) abort
|
||||
if bufname('%') == '' && line('$') == 1 && getline(1) == '' && !&mod
|
||||
edit `=msgfile`
|
||||
else
|
||||
split `=msgfile`
|
||||
keepalt split `=msgfile`
|
||||
endif
|
||||
if old_type ==# 'index'
|
||||
bdelete #
|
||||
|
||||
Reference in New Issue
Block a user