end editing (avoids messing up the edit stack)
Merge pull request #3 from DisposaBoy/master

make sure to call end_edit