Skip to content

fix: preserve integer option string values - #46

Merged
dkasak merged 1 commit into
poljar:mainfrom
Komzpa:komzpa/integer-option-string-values
Jun 24, 2026
Merged

dkasak merged 1 commit into
poljar:mainfrom
Komzpa:komzpa/integer-option-string-values

Conversation

@Komzpa

@Komzpa Komzpa commented Jun 23, 2026 •

Copy link
Copy Markdown

This fixes a small rust-weechat config bug I hit while making weechat-matrix-rs build with newer WeeChat APIs.

IntegerOptionSettings already has string_values for WeeChat 4.1+, but new_integer_option was not passing them into OptionDescription. This keeps symbolic integer values such as merge-without-core / independent working for downstream config options.

Checked with cargo check and cargo test.

Fix requested by @strk.

@Komzpa

Komzpa commented Jun 23, 2026 •

Copy link
Copy Markdown
Author

@strk Could you please review this draft when you have a moment? I found it while preparing the weechat-matrix-rs compatibility work by your request.

@strk

strk commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

It would help to have CI organized with weechat version matrix (and not directly aimed at release, maybe). Are you up for that too ?

@strk strk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, no idea how to approve CI run, hopefully this approval will do

@dkasak

dkasak commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

I just approved the CI run. Patch looks good to me.

@dkasak
dkasak merged commit 81e45c2 into poljar:main Jun 24, 2026
27 checks 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.

3 participants