Skip to content
Snippets Groups Projects
Commit 4c86262c authored by Izuta Hiroyuki's avatar Izuta Hiroyuki
Browse files

Do nothing if commit section isn't open

parent 29bdf495
Branches
Tags
No related merge requests found
......@@ -931,6 +931,10 @@ endfunction
" magit#close_commit: cancel for commit mode
" close commit section if opened
function! magit#close_commit()
if ( b:magit_current_commit_mode == '' )
return
endif
let b:magit_current_commit_mode=''
call magit#update_buffer()
endfunction
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment