Skip to content

Commit e952a55

Browse files
Jason3SCopilot
andauthored
Update packages/cspell-lib/src/lib/Transform/SourceMap.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Jason Dent <Jason3S@users.noreply.github.com>
1 parent 6191862 commit e952a55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cspell-lib/src/lib/Transform/SourceMap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class SourceMapCursorImpl implements SourceMapCursor {
100100
if (this.linear) {
101101
return offsetInDst - this.begin1 + this.begin0;
102102
}
103-
// For a non-linear segment, the offset in the source maps to the start of the segment in the transformed text.
103+
// For a non-linear segment, the offset in the transformed text maps to the start of the segment in the source text.
104104
return this.begin0;
105105
}
106106

0 commit comments

Comments
 (0)