code editor : scroll to top on var in and clear selection (close #209)