diff options
author | chu4ng <shichuang@horsefucker.org> | 2020-12-05 06:28:06 +0300 |
---|---|---|
committer | chu4ng <shichuang@horsefucker.org> | 2020-12-05 06:28:06 +0300 |
commit | 9bad03c74566d06b1fc9bc767f3af56b5d502862 (patch) | |
tree | bee2d0d69090e46f0a2b9567284b5da9a221e113 /ranger | |
parent | 5047d9e5ae266a8860b99f282475a832b441394b (diff) | |
parent | 7a0d077e4545f18d30488122fee80ba4df1c7b52 (diff) | |
download | ranger-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.py | 5 |
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) |