[file edit] fixed codeMirror selection bug