diff options
-rw-r--r-- | ranger/api/commands.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/api/commands.py b/ranger/api/commands.py index aa2da3db..d6c02aaa 100644 --- a/ranger/api/commands.py +++ b/ranger/api/commands.py @@ -129,8 +129,8 @@ class Command(FileManagerAware): """Returns everything from and after arg(n)""" got_space = True word_count = 0 - for i in range(len(self.line)): - if self.line[i] == " ": + for i, char in enumerate(self.line): + if char.isspace(): if not got_space: got_space = True word_count += 1 |