From a3dbac7dfc159a53eeb283673613a4bb39e75ed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Wed, 22 May 2024 10:34:07 +0800 Subject: [PATCH] Completion (Fish): fix compatibility for old python versions --- completions/fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/completions/fish b/completions/fish index a1713e729..811e4099b 100755 --- a/completions/fish +++ b/completions/fish @@ -85,7 +85,8 @@ string match -r -a -g "^###> ?(.*)" < (status -f) | string collect | python3 | s ###> elif type == 'config': ###> print(f'{command_prefix} -x -a "(__fastfetch_complete_config)"') ###> elif type == 'enum': -###> print(f'{command_prefix} -x -a "{' '.join(flag["arg"]["enum"])}"') +###> temp: str = ' '.join(flag["arg"]["enum"]) +###> print(f'{command_prefix} -x -a "{temp}"') ###> elif type == 'logo': ###> print(f'{command_prefix} -x -a "(__fastfetch_complete_logo)"') ###> elif type == 'structure':