summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Leonhardt <tleonhardt@gmail.com>2017-05-17 19:48:30 -0400
committerTodd Leonhardt <tleonhardt@gmail.com>2017-05-17 19:48:30 -0400
commit5ae72515ffaaa37063cdb073d9790f1426e4abcb (patch)
tree18efb8b35ea25696e6e26f00c874bd804e83fbb9
parentaa7d2841190ee642c3dd2493d19897f638a989d6 (diff)
downloadcmd2-git-5ae72515ffaaa37063cdb073d9790f1426e4abcb.tar.gz
Minor tweaks
-rwxr-xr-xcmd2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2.py b/cmd2.py
index 8c45536d..42d1306f 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -952,7 +952,7 @@ class Cmd(cmd.Cmd):
i, n = 0, len(line)
while i < n and line[i] in self.identchars:
- i = i+1
+ i += 1
command, arg = line[:i], line[i:].strip()
return command, arg, line
@@ -1381,7 +1381,7 @@ class Cmd(cmd.Cmd):
add_trailing_sep_if_dir = True
add_sep_after_tilde = False
- # If not path and no search text has been entered, then search in the CWD for *
+ # If no path and no search text has been entered, then search in the CWD for *
if not text and line[begidx - 1] == ' ' and (begidx >= len(line) or line[begidx] == ' '):
search_str = os.path.join(os.getcwd(), '*')
else: