commit

Applies changes from editing mode, if any, and cleans up saved state.