Fix failing feature tests

This commit is contained in:
Aditya Toshniwal
2024-03-26 11:20:04 +05:30
parent cc1ce09b73
commit c0a1429664
4 changed files with 5 additions and 22 deletions

View File

@@ -73,7 +73,7 @@ export default class CustomEditorView extends EditorView {
} else {
const line = this.state.doc.line(lineNo);
pos = line.from + ch;
if(pos > line.to) {
if(ch == -1 || pos > line.to) {
pos = line.to;
}
}