Skip to content

Commit

Permalink
update commit mode to amend if already in commit mode
Browse files Browse the repository at this point in the history
ref #109
  • Loading branch information
jreybert committed Mar 1, 2017
1 parent f20bfda commit a38dc5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/magit.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,8 @@ function! magit#commit_command(mode)
call <SID>mg_git_commit(a:mode)
else
let section=<SID>mg_get_section()
if ( section == 'commit' )
if ( section == 'commit' &&
\ !(b:magit_current_commit_mode == 'CC' && a:mode == 'CA' ) )
if ( b:magit_current_commit_mode == '' )
echoerr "Error, commit section should not be enabled"
return
Expand Down

0 comments on commit a38dc5a

Please sign in to comment.