Remove begin_edit and end_edit to add SublimeText3 support for "Use Scratch".