mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 10:30:28 +08:00
fix(completion): unescape strings for __fish_complete_list
This commit is contained in:
parent
a9cee9e755
commit
cd3da62d24
|
@ -18,11 +18,11 @@ where:
|
||||||
switch $pat
|
switch $pat
|
||||||
case "*$div*"
|
case "*$div*"
|
||||||
for i in (echo $pat | sed "s/^\(.\+$div\)$iprefix.*\$/\1/")$iprefix(eval $cmd)
|
for i in (echo $pat | sed "s/^\(.\+$div\)$iprefix.*\$/\1/")$iprefix(eval $cmd)
|
||||||
echo $i
|
string unescape -- $i
|
||||||
end
|
end
|
||||||
case '*'
|
case '*'
|
||||||
for i in $prefix$iprefix(eval $cmd)
|
for i in $prefix$iprefix(eval $cmd)
|
||||||
echo $i
|
string unescape -- $i
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user