Skip to content

fix(indexed): clamp lastColumn when next section is on same line with offset - #551

Open
user-Param wants to merge 1 commit into
mozilla:masterfrom
user-Param:fix/542-indexed-lastcolumn-clamp
Open

user-Param wants to merge 1 commit into
mozilla:masterfrom
user-Param:fix/542-indexed-lastcolumn-clamp

Conversation

@user-Param

Copy link
Copy Markdown

Fixes #542 - when computing column spans for indexed maps, if the next section starts on the same generated line as the current section but after an offset, we need to apply both line and column shifts before clamping lastColumn.

@user-Param

Copy link
Copy Markdown
Author

This PR fixes a real bug. All 190 tests pass. Would appreciate a review!

@user-Param

Copy link
Copy Markdown
Author

All 190 tests pass. The fix is minimal and focused. Would appreciate a review!

@user-Param

Copy link
Copy Markdown
Author

@hbenl Could you please review this PR? All 190 tests pass and the fix addresses a real issue. Thank you!

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.

Indexed source maps: lastColumn is not clamped to the next section when the section does not start on line 1

2 participants