summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcmd2.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index cfbc18f5..f4e7d078 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -1728,7 +1728,13 @@ class Cmd(cmd.Cmd):
# Get the status of quotes in the token being completed
completion_token = tokens[-1]
- if len(completion_token) > 1:
+ if len(completion_token) == 1:
+ # Check if the token being completed has an unclosed quote
+ first_char = completion_token[0]
+ if first_char in QUOTES:
+ unclosed_quote = first_char
+
+ elif len(completion_token) > 1:
first_char = completion_token[0]
last_char = completion_token[-1]