summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/tab.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/core/tab.py b/ranger/core/tab.py
index 6059eb6b..433bfb75 100644
--- a/ranger/core/tab.py
+++ b/ranger/core/tab.py
@@ -78,7 +78,10 @@ class Tab(FileManagerAware, SettingsAware):
 
 	def get_selection(self):
 		if self.thisdir:
-			return self.thisdir.get_selection()
+			if self.thisdir.marked_items:
+				return self.thisdir.get_selection()
+			else:
+				return [self._thisfile]
 		return set()
 
 	def assign_cursor_positions_for_subdirs(self):