|
@@ -11,7 +11,7 @@ __ltrim_colon_completions()
|
|
{
|
|
{
|
|
if [[ "$1" == *:* && "$COMP_WORDBREAKS" == *:* ]]; then
|
|
if [[ "$1" == *:* && "$COMP_WORDBREAKS" == *:* ]]; then
|
|
# Remove colon-word prefix from COMPREPLY items
|
|
# Remove colon-word prefix from COMPREPLY items
|
|
- local colon_word=${1%${1##*:}}
|
|
|
|
|
|
+ local colon_word=${1%"${1##*:}"}
|
|
local i=${#COMPREPLY[*]}
|
|
local i=${#COMPREPLY[*]}
|
|
while [[ $((--i)) -ge 0 ]]; do
|
|
while [[ $((--i)) -ge 0 ]]; do
|
|
COMPREPLY[$i]=${COMPREPLY[$i]#"$colon_word"}
|
|
COMPREPLY[$i]=${COMPREPLY[$i]#"$colon_word"}
|