fix: one of line setup error with json linting

This commit is contained in:
Andrew Bastin
2021-12-15 22:11:46 +05:30
parent a2757a0335
commit 0022efe844

View File

@@ -98,8 +98,8 @@ const hoppLinterExt = (hoppLinter: LinterDefinition): Extension => {
return linterResult.map((result) => {
const startPos =
view.state.doc.line(result.from.line + 1).from + result.from.ch
const endPos = view.state.doc.line(result.to.line + 1).from + result.to.ch
view.state.doc.line(result.from.line).from + result.from.ch - 1
const endPos = view.state.doc.line(result.to.line).from + result.to.ch - 1
return {
from: startPos,