mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 13:53:51 -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
|
if bufname('%') == '' && line('$') == 1 && getline(1) == '' && !&mod
|
||||||
edit `=msgfile`
|
edit `=msgfile`
|
||||||
else
|
else
|
||||||
split `=msgfile`
|
keepalt split `=msgfile`
|
||||||
endif
|
endif
|
||||||
if old_type ==# 'index'
|
if old_type ==# 'index'
|
||||||
bdelete #
|
bdelete #
|
||||||
|
|||||||
Reference in New Issue
Block a user