summaryrefslogtreecommitdiffstats
path: root/completions/pydoc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--completions/pydoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/completions/pydoc b/completions/pydoc
index 2cf2987..12e83e4 100644
--- a/completions/pydoc
+++ b/completions/pydoc
@@ -25,7 +25,7 @@ _comp_cmd_pydoc()
if ! _comp_looks_like_path "$cur"; then
# Prefer python in the same dir for resolving modules
local pathcmd
- pathcmd=$(type -P "$1") && local PATH=${pathcmd%/*}:$PATH
+ pathcmd=$(type -P -- "$1") && local PATH=${pathcmd%/*}:$PATH
_comp_compgen -ax python modules
fi