about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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: