More efficient to check `CodeMirror.cmpPos(sel.end, prefixPos) < 0)`