about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2020-08-01 12:18:34 +0200
committertoonn <toonn@toonn.io>2020-08-01 12:18:34 +0200
commit53c1eaab8c04971962ae2f131106eccc9454aa7b (patch)
treec4cd5302365dfa016692c9eb4568d0ffe2d71303 /ranger
parent0c54184fbc507c81d4eee77f71df27152535e226 (diff)
downloadranger-53c1eaab8c04971962ae2f131106eccc9454aa7b.tar.gz
Add initialization and fix indentation
Diffstat (limited to 'ranger')
-rw-r--r--ranger/core/tab.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/ranger/core/tab.py b/ranger/core/tab.py
index 2e2e6444..64edf120 100644
--- a/ranger/core/tab.py
+++ b/ranger/core/tab.py
@@ -20,6 +20,8 @@ class Tab(FileManagerAware, SettingsAware):  # pylint: disable=too-many-instance
         self.history = History(self.settings.max_history_size, unique=False)
         self.last_search = None
         self._pointer = 0
+        self._pointed_obj = None
+        self.pointed_obj = None
         self.path = abspath(expanduser(path))
         self.pathway = ()
         # NOTE: in the line below, weak=True works only in python3.  In python2,
@@ -55,9 +57,10 @@ class Tab(FileManagerAware, SettingsAware):  # pylint: disable=too-many-instance
     thisfile = property(_get_thisfile, _set_thisfile)
 
     def _get_pointer(self):
-        if (self.thisdir is not None
-            and self.thisdir.files[self._pointer] != self._pointed_obj
-           ):
+        if (
+                self.thisdir is not None
+                and self.thisdir.files[self._pointer] != self._pointed_obj
+        ):
             try:
                 self._pointer = self.thisdir.files.index(self._pointed_obj)
             except ValueError: