summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-19 22:06:05 +0100
committerhut <hut@lavabit.com>2010-01-19 22:06:05 +0100
commit3a54161b2391705617f5790b65e35fc4edad0731 (patch)
tree328afdea355b14209d4dcc8abe8d88cbe7b59e43 /ranger
parent4b9150b51a2aa2decaa4f63181398fed43ab6293 (diff)
downloadranger-3a54161b2391705617f5790b65e35fc4edad0731.tar.gz
command: fixed abbreviation handling
Diffstat (limited to 'ranger')
-rw-r--r--ranger/commands.py3
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: