about 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 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)