We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd61b8a commit 4947c9aCopy full SHA for 4947c9a
lib/adapters/apply-edit-adapter.ts
@@ -90,7 +90,7 @@ export default class ApplyEditAdapter {
90
const startRow = edit.oldRange.start.row
91
const startCol = edit.oldRange.start.column
92
const lineLength = buffer.lineLengthForRow(startRow)
93
- if (lineLength == null || startCol > lineLength) {
+ if (startCol > lineLength) {
94
throw Error(`Out of range edit on ${path}:${startRow + 1}:${startCol + 1}`)
95
}
96
0 commit comments