summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-03-29 00:37:06 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-03-29 00:37:06 -0400
commitbf11c167a92386af38c4900b43e9d3f2c26302bb (patch)
treeae71d87ef54825d9f4f4c5bec83a29028e917a36
parent4c2e9187df2f85e5eda11a1461a46247ad9d8d37 (diff)
downloadcmd2-git-bf11c167a92386af38c4900b43e9d3f2c26302bb.tar.gz
Fixed a comment a made a line more readable
-rwxr-xr-xcmd2.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd2.py b/cmd2.py
index b52d32e4..e42bf3cc 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -203,7 +203,7 @@ STRIP_QUOTES_FOR_NON_POSIX = True
# For @options commands, pass a list of argument strings instead of a single argument string to the do_* methods
USE_ARG_LIST = True
-# Used for tab completion. Do not change.
+# Used for tab completion and word breaks. Do not change.
QUOTES = ['"', "'"]
REDIRECTION_CHARS = ['|', '<', '>']
@@ -1061,7 +1061,7 @@ class Cmd(cmd.Cmd):
self.allow_appended_space = True
# If true and a single match is returned to complete(), then a closing quote
- # will be added if there is an umatched opening quote
+ # will be added if there is an unmatched opening quote
self.allow_closing_quote = True
# If the tab-completion matches should be displayed in a way that is different than the actual match values,
@@ -2718,7 +2718,7 @@ class Cmd(cmd.Cmd):
readline.set_completer(self.complete)
# Break words on whitespace and quotes when tab completing
- completer_delims = " \t\n\"'"
+ completer_delims = " \t\n" + ''.join(QUOTES)
if self.allow_redirection:
# If redirection is allowed, then break words on those characters too