Skip to content

Don't reset to regular font on match None for bold and italic#125

Merged
j-g00da merged 1 commit intoratatui:mainfrom
gold-silver-copper:main
Sep 26, 2025
Merged

Don't reset to regular font on match None for bold and italic#125
j-g00da merged 1 commit intoratatui:mainfrom
gold-silver-copper:main

Conversation

@gold-silver-copper
Copy link
Copy Markdown
Contributor

@gold-silver-copper gold-silver-copper commented Sep 26, 2025

We already set font when first creating the style_builder, no need to reset it. This might also be wiping a previous setting. For example, if it has both italics and bold modifier, italics font is applied, but bold matches none, and resets font back to regular, we want to avoid such a behavior I assume.

@j-g00da
Copy link
Copy Markdown
Member

j-g00da commented Sep 26, 2025

Nice catch, thanks!

@j-g00da j-g00da merged commit cc9f8fe into ratatui:main Sep 26, 2025
24 checks passed
@github-actions github-actions bot mentioned this pull request Jan 23, 2026
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