From 8215f3af6a18755165e105879eeaad4fcad9951d Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 24 Mar 2013 14:40:00 +0100 Subject: container.directory: move refilter() to the right place --- ranger/container/directory.py | 4 ++-- 1 file 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 -- cgit 1.4.1-2-gfad0