about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorchu4ng <shichuang@horsefucker.org>2020-12-05 06:28:06 +0300
committerchu4ng <shichuang@horsefucker.org>2020-12-05 06:28:06 +0300
commit9bad03c74566d06b1fc9bc767f3af56b5d502862 (patch)
treebee2d0d69090e46f0a2b9567284b5da9a221e113 /ranger
parent5047d9e5ae266a8860b99f282475a832b441394b (diff)
parent7a0d077e4545f18d30488122fee80ba4df1c7b52 (diff)
downloadranger-9bad03c74566d06b1fc9bc767f3af56b5d502862.tar.gz
Merge remote-tracking branch 'toonn/fix-files-none' into fix-files-index
Diffstat (limited to 'ranger')
-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 64edf120..1771ffa2 100644
--- a/ranger/core/tab.py
+++ b/ranger/core/tab.py
@@ -69,7 +69,10 @@ class Tab(FileManagerAware, SettingsAware):  # pylint: disable=too-many-instance
 
     def _set_pointer(self, value):
         self._pointer = value
-        self._pointed_obj = self.thisdir.files[self._pointer]
+        try:
+            self._pointed_obj = self.thisdir.files[self._pointer]
+        except TypeError:
+            pass
 
     pointer = property(_get_pointer, _set_pointer)