Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Fix flags in zsh-mime-setup so that they are utilized correctly
- X-seq: zsh-workers 52240
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: [PATCH] Fix flags in zsh-mime-setup so that they are utilized correctly
- Date: Mon, 23 Oct 2023 20:21:05 -0500
- Archived-at: <https://zsh.org/workers/52240>
- List-id: <zsh-workers.zsh.org>
Hi,
a simple bug – first it sets s=$suffix, to then use $suffix in a
crucial place, while it supposed to use the work-var $s
--
Best regards,
Sebastian Gniazdowski
From 1c2af89d09225b80f94fbd197a339ffd89c4d217 Mon Sep 17 00:00:00 2001
From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
Date: Mon, 23 Oct 2023 20:08:33 -0500
Subject: [PATCH] fix: use work-var $s not $suffix when setting flags in
zsh-mime-setup
---
Functions/MIME/zsh-mime-handler | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Functions/MIME/zsh-mime-handler b/Functions/MIME/zsh-mime-handler
index 288a0796d..2feacf063 100644
--- a/Functions/MIME/zsh-mime-handler
+++ b/Functions/MIME/zsh-mime-handler
@@ -193,7 +193,7 @@ if ! zsh-mime-contexts -s $suffix flags flags; then
# Same again for flags.
s=$suffix
while true; do
- flags="${zsh_mime_flags[$suffix]}"
+ flags="${zsh_mime_flags[$s]}"
if [[ -n $flags ]]; then
break
fi
--
2.34.1
Messages sorted by:
Reverse Date,
Date,
Thread,
Author