Skip to content

Commit 57d5392

Browse files
committed
fix(man,info): remove ineffective "_expand" calls
The function "_expand" processes "cur" that begins with a tilde, which is actually already processed by earlier codes in these completions. Thus "_expand" will never see "cur" starting with a tilde there. The earlier codes processing the tilde were introduced in commit 1b85a1b. The calls of "_expand" was moved after the code in commit add4e3c, for which we forgot the background unfortunately. We here just remove the calls of "_expand".
1 parent 6f5ec1b commit 57d5392

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

completions/info

-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ _info()
4747
infopath=$INFOPATH
4848
fi
4949

50-
_expand || return
51-
5250
infopath=$infopath:
5351
if [[ -n $cur ]]; then
5452
infopath="${infopath//://$cur* }"

completions/man

-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ _man()
7575
# shellcheck disable=SC2053
7676
[[ $prev == $mansect ]] && sect=$prev || sect='*'
7777

78-
_expand || return
79-
8078
manpath=$manpath:
8179
if [[ -n $cur ]]; then
8280
manpath="${manpath//://*man$sect/$cur* } ${manpath//://*cat$sect/$cur* }"

0 commit comments

Comments
 (0)