Skip to content

fix: handle non-contiguous color segments by resetting before each segment#92

Merged
patricklx merged 1 commit intomainfrom
fix-color-bug
Apr 21, 2026
Merged

fix: handle non-contiguous color segments by resetting before each segment#92
patricklx merged 1 commit intomainfrom
fix-color-bug

Conversation

@patricklx
Copy link
Copy Markdown
Owner

No description provided.

…gment

- Reset ANSI codes before each segment to ensure clean color state
- This fixes issues when characters at different positions have different colors
- Maintains color continuity within contiguous segments via lookAheadForNextDiff
- Added comprehensive tests for multi-position color scenarios
- All 80 tests passing including new multi-position color tests
@patricklx patricklx added the bug Something isn't working label Apr 21, 2026
@patricklx patricklx merged commit cd26779 into main Apr 21, 2026
1 of 2 checks passed
@github-actions github-actions Bot mentioned this pull request Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant