Skip to content

Conversation

@milouse
Copy link
Contributor

@milouse milouse commented Oct 2, 2025

Description

Not sure since when, but I just used web_config to refresh my color theme and discovered that it generates some error as universal values.

This MR fix the 2 issues I got:

  • the new underline style behavior make the default False value to be translated to --underline=False, which makes set_color not really happy
  • a probably more old mistake was inside the parse_opt function, which did not support long options separated from their value with an = sign (i.e. --background=red instead of --background red), causing the = sign to be kept as part of the color value, leading after translation to universal variable to a wrong double = sign: --background==red.

Fixes issue #

TODOs:

  • Changes to fish usage are reflected in user documentation/manpages.
  • Tests have been added for regressions fixed (I may be wrong but I think web_config does not have any test)
  • User-visible changes noted in CHANGELOG.rst (not sure we should document a fix?)

Underline is no more a boolean and should be one of the accepted style,
or None. By keeping False as default value, web_config was generating
wrong --underline=False settings
@krobelus krobelus modified the milestones: fish 4.2, fish 4.1.2 Oct 3, 2025
krobelus pushed a commit that referenced this pull request Oct 3, 2025
Underline is no more a boolean and should be one of the accepted style,
or None. By keeping False as default value, web_config was generating
wrong --underline=False settings

Part of #11861
@krobelus krobelus closed this in 8adc598 Oct 3, 2025
krobelus pushed a commit that referenced this pull request Oct 3, 2025
Underline is no more a boolean and should be one of the accepted style,
or None. By keeping False as default value, web_config was generating
wrong --underline=False settings

Part of #11861

(cherry picked from commit c884c08)
krobelus pushed a commit that referenced this pull request Oct 3, 2025
@milouse milouse deleted the fix-webconfig branch October 6, 2025 09:20
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