summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/commands.py b/ranger/commands.py
index ddd8ba07..6438d20b 100644
--- a/ranger/commands.py
+++ b/ranger/commands.py
@@ -458,7 +458,7 @@ def get_command(name, abbrev=True):
 				or cmd == name]
 		if len(lst) == 0:
 			raise KeyError
-		if len(lst) == 1:
+		if len(lst) == 1 or by_name[name] in lst:
 			return lst[0]
 		raise ValueError("Ambiguous command")
 	else: