Remove unused local variable `wordbreaks'
in function `__reassemble_comp_words_by_ref()'
This commit is contained in:
parent
08c5878483
commit
098dc9c1b8
@ -220,13 +220,12 @@ dequote()
|
|||||||
#
|
#
|
||||||
__reassemble_comp_words_by_ref() {
|
__reassemble_comp_words_by_ref() {
|
||||||
local exclude i j ref
|
local exclude i j ref
|
||||||
# On bash-3, `COMP_WORDBREAKS' is empty which is ok; no additional
|
|
||||||
# word breaking is done on bash-3.
|
|
||||||
local wordbreaks="$COMP_WORDBREAKS"
|
|
||||||
# Exclude word separator characters?
|
# Exclude word separator characters?
|
||||||
if [[ $1 ]]; then
|
if [[ $1 ]]; then
|
||||||
# Yes, exclude word separator characters;
|
# Yes, exclude word separator characters;
|
||||||
# Exclude only those characters, which were really included
|
# Exclude only those characters, which were really included
|
||||||
|
# NOTE: On bash-3, `COMP_WORDBREAKS' is empty which is ok; no
|
||||||
|
# additional word breaking is done on bash-3.
|
||||||
exclude="${1//[^$COMP_WORDBREAKS]}"
|
exclude="${1//[^$COMP_WORDBREAKS]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user