Skip to content

Commit 28e0989

Browse files
committed
Further fix finding a parse state in StreamLanguage indent
Issue codemirror/dev#1483
1 parent e3ccab2 commit 28e0989

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stream-parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export class StreamLanguage<State> extends Language {
113113
from = IndentedFrom.get(cx.state)
114114
if (from != null && from < cx.pos - 1e4) from = undefined
115115
}
116-
let start = findState(this, cx.node.tree!, 0, cx.node.from, from ?? cx.pos), statePos, state
116+
let start = findState(this, cx.node.tree!, cx.node.from, cx.node.from, from ?? cx.pos), statePos, state
117117
if (start) { state = start.state; statePos = start.pos + 1 }
118118
else { state = this.streamParser.startState(cx.unit) ; statePos = cx.node.from }
119119
if (cx.pos - statePos > C.MaxIndentScanDist) return null

0 commit comments

Comments
 (0)