about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-03-24 14:40:00 +0100
committerhut <hut@lavabit.com>2013-03-24 14:40:00 +0100
commit8215f3af6a18755165e105879eeaad4fcad9951d (patch)
tree2f97dcd8988acf72eb4a25fc68a5b66c008dbe23
parent2214445dc164b18db18be291289c8b7f9059a0bd (diff)
downloadranger-8215f3af6a18755165e105879eeaad4fcad9951d.tar.gz
container.directory: move refilter() to the right place
-rw-r--r--ranger/container/directory.py4
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