diff options
author | Todd Leonhardt <tleonhardt@gmail.com> | 2017-05-17 19:48:30 -0400 |
---|---|---|
committer | Todd Leonhardt <tleonhardt@gmail.com> | 2017-05-17 19:48:30 -0400 |
commit | 5ae72515ffaaa37063cdb073d9790f1426e4abcb (patch) | |
tree | 18efb8b35ea25696e6e26f00c874bd804e83fbb9 | |
parent | aa7d2841190ee642c3dd2493d19897f638a989d6 (diff) | |
download | cmd2-git-5ae72515ffaaa37063cdb073d9790f1426e4abcb.tar.gz |
Minor tweaks
-rwxr-xr-x | cmd2.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |