From 5ae72515ffaaa37063cdb073d9790f1426e4abcb Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Wed, 17 May 2017 19:48:30 -0400 Subject: Minor tweaks --- cmd2.py | 4 ++-- 1 file 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: -- cgit v1.2.1