summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-22 11:17:37 +0100
committerhut <hut@lavabit.com>2009-12-22 11:17:37 +0100
commitf5b7240a28004cffcd5c14ab4ba3c022d0bd589a (patch)
tree64009a5e42ceac2c6284703defd3fbf2151c5685 /ranger
parenta8407dbf0b3ae93a498d21f258d6edfced605064 (diff)
downloadranger-f5b7240a28004cffcd5c14ab4ba3c022d0bd589a.tar.gz
"open with" dialog if no application was found
Diffstat (limited to 'ranger')
-rw-r--r--ranger/actions.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ranger/actions.py b/ranger/actions.py
index 564c9faf..2def74bc 100644
--- a/ranger/actions.py
+++ b/ranger/actions.py
@@ -66,7 +66,9 @@ class Actions(EnvironmentAware, SettingsAware):
 		"""Enter the current directory or execute the current file"""
 		cf = self.env.cf
 		if not self.env.enter_dir(cf):
-			self.execute_file(cf, mode = mode)
+			if not self.execute_file(cf, mode = mode):
+				self.open_console('@')
+
 
 	def history_go(self, relative):
 		"""Move back and forth in the history"""
@@ -86,7 +88,7 @@ class Actions(EnvironmentAware, SettingsAware):
 		if type(files) not in (list, tuple):
 			files = [files]
 
-		self.apps.get(app)(
+		return self.apps.get(app)(
 				mainfile = files[0],
 				files = files,
 				flags = flags,