Skip to content

fix(renderer): propagate style to generated operators - #43

Merged
thatmagicalcat merged 1 commit into
thatmagicalcat:mainfrom
floze-the-genius:fix/issue-24-style-propagation
Jul 19, 2026
Merged

fix(renderer): propagate style to generated operators#43
thatmagicalcat merged 1 commit into
thatmagicalcat:mainfrom
floze-the-genius:fix/issue-24-style-propagation

Conversation

@floze-the-genius

Copy link
Copy Markdown
Contributor

Closes #24

Summary

  • apply the active render style to negation, prime, and infix layout nodes
  • ensure generated -, ', and binary operator cells use the same color and attributes as their surrounding expression
  • add backend-level regression coverage for standalone operators and the nested colored integral from the issue

Why

Rendered child nodes already carried RenderCtx::current_style, but punctuation generated directly by these composite layout nodes still used the default empty style. That left operators uncolored inside styled expressions even though adjacent identifiers were styled correctly.

Tests

  • cargo fmt --check
  • cargo test
  • cargo clippy -- -D warnings

cargo test --all-features is currently blocked on main by the pre-existing unresolved crate::backends::memory import in src/ratatui.rs; the repository's configured CI commands above all pass.

@thatmagicalcat

Copy link
Copy Markdown
Owner

LGTM

@thatmagicalcat
thatmagicalcat merged commit 6c482fb into thatmagicalcat:main Jul 19, 2026
1 check 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.

Propagate current style throughout the renderer

2 participants