We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 612c891 commit bbb5b11Copy full SHA for bbb5b11
bash_completion
@@ -1352,10 +1352,12 @@ _comp_delimited()
1352
# `show-all-if-ambiguous` on, but even that has cases where it fails
1353
# and the last separator including everything before it is lost.
1354
# https://github.com/scop/bash-completion/pull/913#issuecomment-1490140309
1355
- local i
1356
- for i in "${!COMPREPLY[@]}"; do
1357
- COMPREPLY[i]="$prefix${COMPREPLY[i]}"
1358
- done
+ if [[ $prefix ]]; then
+ local i
+ for i in "${!COMPREPLY[@]}"; do
+ COMPREPLY[i]="$prefix${COMPREPLY[i]}"
1359
+ done
1360
+ fi
1361
1362
[[ $delimiter != : ]] || _comp_ltrim_colon_completions "$cur"
1363
}
0 commit comments