diff options
-rw-r--r-- | ranger/gui/widgets/statusbar.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py index 3c9d0ed8..d87ff291 100644 --- a/ranger/gui/widgets/statusbar.py +++ b/ranger/gui/widgets/statusbar.py @@ -140,7 +140,11 @@ class StatusBar(Widget): and self.column.target.is_directory: target = self.column.target.pointed_obj else: - target = self.fm.thistab.at_level(0).pointed_obj + directory = self.fm.thistab.at_level(0) + if directory: + target = directory.pointed_obj + else: + return try: stat = target.stat except: |