about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorchu4ng <shichuang@horsefucker.org>2020-12-05 06:29:33 +0300
committerchu4ng <shichuang@horsefucker.org>2020-12-05 06:31:29 +0300
commit6fd49695111232df31358a67b11dc5ee3b8dbcfc (patch)
treebaf6c8c4eca175ab0da304c840285bfdbaa4ee09 /ranger
parent9bad03c74566d06b1fc9bc767f3af56b5d502862 (diff)
downloadranger-6fd49695111232df31358a67b11dc5ee3b8dbcfc.tar.gz
Fix IndexError(list index out of range);
Fix #2173.
Diffstat (limited to 'ranger')
-rw-r--r--ranger/core/tab.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/core/tab.py b/ranger/core/tab.py
index 1771ffa2..b61a77cc 100644
--- a/ranger/core/tab.py
+++ b/ranger/core/tab.py
@@ -73,6 +73,8 @@ class Tab(FileManagerAware, SettingsAware):  # pylint: disable=too-many-instance
             self._pointed_obj = self.thisdir.files[self._pointer]
         except TypeError:
             pass
+        except IndexError:
+            pass
 
     pointer = property(_get_pointer, _set_pointer)