Fix committing, commit on save

Saving the commit message will now automatically commit and close
the editor.