Skip to content

Commit

Permalink
python: Complete all files only if -c is before current word
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Mar 10, 2016
1 parent 16d52f9 commit 6eae809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/python
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ _python()

# if '-c' is already given, complete all kind of files.
local i
for (( i=0; i < ${#words[@]}-1; i++ )); do
for (( i=0; i < $cword; i++ )); do
if [[ ${words[i]} == -c ]]; then
_filedir
fi
Expand Down

0 comments on commit 6eae809

Please sign in to comment.