diff options
author | toonn <toonn@toonn.io> | 2020-08-01 12:18:34 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2020-08-01 12:18:34 +0200 |
commit | 53c1eaab8c04971962ae2f131106eccc9454aa7b (patch) | |
tree | c4cd5302365dfa016692c9eb4568d0ffe2d71303 /ranger | |
parent | 0c54184fbc507c81d4eee77f71df27152535e226 (diff) | |
download | ranger-53c1eaab8c04971962ae2f131106eccc9454aa7b.tar.gz |
Add initialization and fix indentation
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/tab.py | 9 |
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: |