Don't clobber alternate file when committing

This commit is contained in:
Tim Pope
2011-04-22 12:59:03 -04:00
parent e047558bee
commit 3ad9b0d9fa

View File

@@ -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 #