From 3a54161b2391705617f5790b65e35fc4edad0731 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 19 Jan 2010 22:06:05 +0100 Subject: command: fixed abbreviation handling --- ranger/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- cgit 1.4.1-2-gfad0