diff options
author | hut <hut@lavabit.com> | 2010-01-19 22:06:05 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-01-19 22:06:05 +0100 |
commit | 3a54161b2391705617f5790b65e35fc4edad0731 (patch) | |
tree | 328afdea355b14209d4dcc8abe8d88cbe7b59e43 /ranger | |
parent | 4b9150b51a2aa2decaa4f63181398fed43ab6293 (diff) | |
download | ranger-3a54161b2391705617f5790b65e35fc4edad0731.tar.gz |
command: fixed abbreviation handling
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/commands.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/commands.py b/ranger/commands.py index a4074075..a3137ddb 100644 --- a/ranger/commands.py +++ b/ranger/commands.py @@ -415,7 +415,8 @@ def get_command(name, abbrev=True): if abbrev: lst = [cls for cmd, cls in by_name.items() \ if cmd.startswith(name) \ - and cls.allow_abbrev] + and cls.allow_abbrev \ + or cmd == name] if len(lst) == 0: raise KeyError if len(lst) == 1: |