Update codemirror.js

Fixed an issue where the selected text would go until the end.