File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2559,7 +2559,7 @@ function ble/complete/source:command/.print-command {
2559
2559
# Note: cygwin では cyg,x86,i68 等で始まる場合にとても遅い。他の環境でも空
2560
2560
# の補完を実行すると遅くなる可能性がある。
2561
2561
local slow_compgen=
2562
- if [[ ! $COMPV ]]; then
2562
+ if [[ ! $COMPV ]] || [[ -f /proc/sys/fs/binfmt_misc/WSLInterop ]] ; then
2563
2563
slow_compgen=1
2564
2564
elif [[ $OSTYPE == cygwin* ]]; then
2565
2565
case $COMPV in
@@ -2572,7 +2572,7 @@ function ble/complete/source:command/.print-command {
2572
2572
# function はクォート除去が実行される。従って、compgen -A command には直
2573
2573
# 接 COMPV を渡し、compgen -A function には compv_quoted を渡す。
2574
2574
if [[ $slow_compgen ]]; then
2575
- shopt -q no_empty_cmd_completion && return 0
2575
+ [[ ! $COMPV ]] && shopt -q no_empty_cmd_completion && return 0
2576
2576
ble/util/conditional-sync \
2577
2577
' builtin compgen -c -- "$COMPV"' \
2578
2578
' ! ble/complete/check-cancel' 128 progressive-weight
You can’t perform that action at this time.
0 commit comments