From 938e7800070984fef0f02596d6177b71e83f2be4 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Thu, 27 Nov 2025 10:23:34 +0100 Subject: [PATCH] fish_config theme save: remove dead code --- share/functions/fish_config.fish | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/share/functions/fish_config.fish b/share/functions/fish_config.fish index 342bf6213..45da0ea10 100644 --- a/share/functions/fish_config.fish +++ b/share/functions/fish_config.fish @@ -270,13 +270,11 @@ fish_pager_color_secondary_description # variables are defined, even if empty. # This branch is only reachable in the case of `theme save` so $scope is always `-U`. - for color in (printf "%s\n" $known_colors (set --names | string match -r $theme_var_filter) | sort -u) - if set -q $color - # Cache the value from whatever scope currently defines it - set -l value $$color - set -eg $color - set -U $color $value - end + for color in (set --names | string match -r $theme_var_filter) + # Cache the value from whatever scope currently defines it + set -l value $$color + set -eg $color + set -U $color $value end return 0 end