summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/gui/widgets/console.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py
index 2e0a4ffb..d3b6138b 100644
--- a/ranger/gui/widgets/console.py
+++ b/ranger/gui/widgets/console.py
@@ -333,7 +333,7 @@ class SearchConsole(Console):
 		Console.execute(self)
 
 
-class OpenConsole(Console):
+class OpenConsole(ConsoleWithTab):
 	"""
 	The OpenConsole allows you to execute shell commands:
 	!vim *         will run vim and open all files in the directory.
@@ -369,7 +369,11 @@ class OpenConsole(Console):
 			log(command)
 			self.fm.execute_command(command, flags=flags)
 		Console.execute(self)
-	
+
+	def _get_tab(self):
+		# for now, just add " %s"
+		return self.line + ' %s'
+
 	def _substitute_metachars(self, command):
 		dct = {}