From f7376eea8641f04073f7106c5c78426cd49ccbf3 Mon Sep 17 00:00:00 2001 From: kotaindah55 Date: Mon, 3 Feb 2025 23:21:33 +0200 Subject: [PATCH] fix: avoid reassigning offset to non-zero value Provide queue.resolveAll parameter with the intended value, instead of reassigning this.offset. --- src/editor-mode/parser/ParserState.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/editor-mode/parser/ParserState.ts b/src/editor-mode/parser/ParserState.ts index d35df00..b0143ee 100644 --- a/src/editor-mode/parser/ParserState.ts +++ b/src/editor-mode/parser/ParserState.ts @@ -103,8 +103,7 @@ export class ParserState { this.resolveContext(); if (skipBlankLine) { if (this.isBlankLine()) { - this.offset = this.line.length; - this.queue.resolveAll(); + this.queue.resolveAll(this.line.to); while (this.linePos != this.maxLine) { this.line = this.doc.line(this.linePos + 1); if (!this.isBlankLine()) { break }