Skip to content

Commit e062d3d

Browse files
committed
refactor: { => _comp}_rl_enabled
1 parent 6381fd1 commit e062d3d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

bash_completion

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,13 @@ have()
140140
# This function checks whether a given readline variable
141141
# is `on'.
142142
#
143-
_rl_enabled()
143+
_comp_readline_variable_on()
144144
{
145145
[[ $(bind -v) == *$1+([[:space:]])on* ]]
146146
}
147147

148+
_comp_deprecate_func _rl_enabled _comp_readline_variable_on
149+
148150
# This function shell-quotes the argument
149151
quote()
150152
{
@@ -2071,8 +2073,8 @@ _cd()
20712073
return
20722074
fi
20732075

2074-
local -r mark_dirs=$(_rl_enabled mark-directories && echo y)
2075-
local -r mark_symdirs=$(_rl_enabled mark-symlinked-directories && echo y)
2076+
local -r mark_dirs=$(_comp_readline_variable_on mark-directories && echo y)
2077+
local -r mark_symdirs=$(_comp_readline_variable_on mark-symlinked-directories && echo y)
20762078

20772079
# we have a CDPATH, so loop on its contents
20782080
for i in ${CDPATH//:/$'\n'}; do

0 commit comments

Comments
 (0)