summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-27 23:46:24 +0200
committerhut <hut@lavabit.com>2011-10-29 21:22:51 +0200
commitfa0a2087880d9c5c6000eb4e583f31a0645ea5ad (patch)
treec1ae141849a650307b74b4ce152ba674dbf18140
parentbf0d09b596eb26e578f1cbf8715d8c3fc2aeba32 (diff)
downloadranger-fa0a2087880d9c5c6000eb4e583f31a0645ea5ad.tar.gz
Fixed tab completion of "open_with" command
-rw-r--r--ranger/defaults/commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/defaults/commands.py b/ranger/defaults/commands.py
index d564d4f6..6cfeff17 100644
--- a/ranger/defaults/commands.py
+++ b/ranger/defaults/commands.py
@@ -307,12 +307,12 @@ class open_with(Command):
 
 		return app, flags, int(mode)
 
-	def _get_tab(self):
+	def tab(self):
 		data = self.rest(1)
 		if ' ' not in data:
 			all_apps = self.fm.apps.all()
 			if all_apps:
-				return (app for app in all_apps if app.startswith(data))
+				return (self.firstpart + app for app in all_apps if app.startswith(data))
 
 		return None