improved selection after parenthesis editing + first editor test #1014