Skip to content

Commit bf11c16

Browse files
committed
Fixed a comment a made a line more readable
1 parent 4c2e918 commit bf11c16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class RlType(Enum):
203203
# For @options commands, pass a list of argument strings instead of a single argument string to the do_* methods
204204
USE_ARG_LIST = True
205205

206-
# Used for tab completion. Do not change.
206+
# Used for tab completion and word breaks. Do not change.
207207
QUOTES = ['"', "'"]
208208
REDIRECTION_CHARS = ['|', '<', '>']
209209

@@ -1061,7 +1061,7 @@ def __init__(self, completekey='tab', stdin=None, stdout=None, persistent_histor
10611061
self.allow_appended_space = True
10621062

10631063
# If true and a single match is returned to complete(), then a closing quote
1064-
# will be added if there is an umatched opening quote
1064+
# will be added if there is an unmatched opening quote
10651065
self.allow_closing_quote = True
10661066

10671067
# If the tab-completion matches should be displayed in a way that is different than the actual match values,
@@ -2718,7 +2718,7 @@ def _cmdloop(self):
27182718
readline.set_completer(self.complete)
27192719

27202720
# Break words on whitespace and quotes when tab completing
2721-
completer_delims = " \t\n\"'"
2721+
completer_delims = " \t\n" + ''.join(QUOTES)
27222722

27232723
if self.allow_redirection:
27242724
# If redirection is allowed, then break words on those characters too

0 commit comments

Comments
 (0)