diff options
author | chu4ng <shichuang@horsefucker.org> | 2020-12-05 06:29:33 +0300 |
---|---|---|
committer | chu4ng <shichuang@horsefucker.org> | 2020-12-05 06:31:29 +0300 |
commit | 6fd49695111232df31358a67b11dc5ee3b8dbcfc (patch) | |
tree | baf6c8c4eca175ab0da304c840285bfdbaa4ee09 | |
parent | 9bad03c74566d06b1fc9bc767f3af56b5d502862 (diff) | |
download | ranger-6fd49695111232df31358a67b11dc5ee3b8dbcfc.tar.gz |
Fix IndexError(list index out of range);
Fix #2173.
-rw-r--r-- | ranger/core/tab.py | 2 |
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) |