mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-12-07 12:44:33 +08:00
:Gwrite in :Gstatus invokes :Gcommit
This commit is contained in:
@@ -767,6 +767,8 @@ function! s:Write(force,...) abort
|
|||||||
return 'write|bdelete'
|
return 'write|bdelete'
|
||||||
elseif expand('%:t') == 'COMMIT_EDITMSG' && $GIT_INDEX_FILE != ''
|
elseif expand('%:t') == 'COMMIT_EDITMSG' && $GIT_INDEX_FILE != ''
|
||||||
return 'wq'
|
return 'wq'
|
||||||
|
elseif s:buffer().type() == 'index'
|
||||||
|
return 'Gcommit'
|
||||||
endif
|
endif
|
||||||
let mytab = tabpagenr()
|
let mytab = tabpagenr()
|
||||||
let mybufnr = bufnr('')
|
let mybufnr = bufnr('')
|
||||||
|
|||||||
Reference in New Issue
Block a user