Skip to content

Conversation

andreev-fn
Copy link
Contributor

Fixes issue #826

Description of changes:
The problem was that lineStart was set not after the '\n' character, but directly on it, which caused lineStart to always equal lineEnd.
In addition, there was a second minor issue — the '\n' character was being counted in the column counter, which made the counter always show 1 more than it should.

@andreev-fn andreev-fn force-pushed the fix-error-position-in-multiline-script branch from ab5a103 to 1f55c23 Compare September 7, 2025 09:23
@andreev-fn andreev-fn force-pushed the fix-error-position-in-multiline-script branch from 1f55c23 to e47bbb4 Compare September 7, 2025 09:28
@antonmedv antonmedv merged commit 1c09e5e into expr-lang:master Sep 8, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants