aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_completion.d/_text_filenames.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bash_completion.d/_text_filenames.bash')
-rw-r--r--bash/bash_completion.d/_text_filenames.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bash_completion.d/_text_filenames.bash b/bash/bash_completion.d/_text_filenames.bash
index 4d576374..caf05e8d 100644
--- a/bash/bash_completion.d/_text_filenames.bash
+++ b/bash/bash_completion.d/_text_filenames.bash
@@ -155,5 +155,5 @@ _text_filenames() {
# Complete everything else; some of it will still be binary
COMPREPLY[${#COMPREPLY[@]}]=$item
- done < <(compgen -A file -- "${COMP_WORDS[COMP_CWORD]}")
+ done < <(compgen -A file -- "$2")
}