1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 22:11:54 +02:00

unposted (cf. users/27656 (Tomasz Pala), users/27660): fix $SUFFIX when GLOB_COMPLETE

This commit is contained in:
Bart Schaefer 2022-04-19 22:44:30 -07:00
parent af634c3acd
commit a270da2ada
2 changed files with 7 additions and 2 deletions

View file

@ -1,4 +1,9 @@
2022-04-14 Bart Schaefer <schaefer@Macadamia>
2022-04-19 Bart Schaefer <schaefer@zsh.org>
* unposted (cf. users/27656 (Tomasz Pala), users/27660):
Completion/Unix/Type/_path_files: fix $SUFFIX when GLOB_COMPLETE
2022-04-14 Bart Schaefer <schaefer@zsh.org>
* 50069: Test/C03traps.ztst: fix test description

View file

@ -734,7 +734,7 @@ for prepath in "$prepaths[@]"; do
compadd "$tmp4[@]" -s "${Uopt:+$ISUFFIX}" $listopts - "$tmpdisp"
done
else
[[ -n "$compstate[pattern_match]" ]] && SUFFIX="${SUFFIX:s./.*/}*"
[[ -n "$compstate[pattern_match]" ]] && SUFFIX="${SUFFIX:gs./.*/}*"
for i in "$tmp1[@]"; do
_list_files i "$prepath$realpath$testpath"