diff options
-rw-r--r-- | ranger/container/directory.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/container/directory.py b/ranger/container/directory.py index 970e16b4..4b3267c6 100644 --- a/ranger/container/directory.py +++ b/ranger/container/directory.py @@ -365,13 +365,13 @@ class Directory(FileSystemObject, Accumulator, Loadable): if self.settings.sort_directories_first: self.files_all.sort(key = sort_by_directory) + self.refilter() + if self.pointer is not None: self.move_to_obj(old_pointed_obj) else: self.correct_pointer() - self.refilter() - def _get_cumulative_size(self): if self.size == 0: return 0 |