Corrected for ST3 that doesn't support view.begin_edit()