summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index 1c869811..84e06b82 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -584,7 +584,7 @@ def path_complete(text, line, begidx, endidx, dir_exe_only=False, dir_only=False
# This is a directory, so don't add a space or quote
set_allow_appended_space(False)
set_allow_closing_quote(False)
- return ["~" + os.path.sep]
+ return [completion_token + os.path.sep]
elif completion_token.startswith('~'):
# Tilde without separator between path is invalid