diff options
author | hut <hut@lavabit.com> | 2012-12-15 17:16:51 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2012-12-15 17:16:51 +0100 |
commit | 2bc1a5b85de58be319db69273e055423d2f44d9b (patch) | |
tree | 093ded9b132fd608a1409876fa3d331bdde2dea9 | |
parent | 01da2015d821254500f2268b6838d9d4722ddbdf (diff) | |
download | ranger-2bc1a5b85de58be319db69273e055423d2f44d9b.tar.gz |
core.tab: fix %s macro in empty directories
-rw-r--r-- | ranger/core/tab.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/core/tab.py b/ranger/core/tab.py index 433bfb75..0aca332a 100644 --- a/ranger/core/tab.py +++ b/ranger/core/tab.py @@ -80,8 +80,10 @@ class Tab(FileManagerAware, SettingsAware): if self.thisdir: if self.thisdir.marked_items: return self.thisdir.get_selection() - else: + elif self._thisfile: return [self._thisfile] + else: + return [] return set() def assign_cursor_positions_for_subdirs(self): |