fix editor.insert()

insert remove char before caret when no selection because selection.start != selection.end is always true with relative pos