Make search work on CodeMirror.