mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-05-08 16:46:22 +02:00
52240: use work-var $s not $suffix when setting flags
This commit is contained in:
parent
98a6892cb1
commit
d86cc841f7
|
@ -1,5 +1,8 @@
|
|||
2023-10-25 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* Sebastian Gniazdowski: 52240: Functions/MIME/zsh-mime-handler:
|
||||
use work-var $s not $suffix when setting flags
|
||||
|
||||
* 52244: Src/Modules/zutil.c, Src/Zle/compcore.c,
|
||||
Src/Zle/compresult.c, Src/builtin.c, Src/glob.c, Src/hist.c,
|
||||
Src/input.c, Src/params.c, Src/utils.c: Coverity defects 1547831,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue