summary refs log tree commit diff stats
path: root/ranger/gui/widgets/browsercolumn.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/gui/widgets/browsercolumn.py')
-rw-r--r--ranger/gui/widgets/browsercolumn.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py
index c05473e2..5e98acf8 100644
--- a/ranger/gui/widgets/browsercolumn.py
+++ b/ranger/gui/widgets/browsercolumn.py
@@ -85,6 +85,13 @@ class BrowserColumn(Pager, Widget):
 			self.need_redraw = True
 			self.old_cf = self.target.pointed_obj
 
+		if type(self.target) == Directory:
+			if self.target.load_content_if_outdated():
+				self.need_redraw = True
+			else:
+				if self.target.sort_if_outdated():
+					self.need_redraw = True
+
 		if self.need_redraw:
 			self.win.erase()
 			if self.target is None:
@@ -131,9 +138,6 @@ class BrowserColumn(Pager, Widget):
 
 		self.win.move(0, 0)
 
-		if not self.target.load_content_if_outdated():
-			self.target.sort_if_outdated()
-
 		if not self.target.content_loaded:
 			maxdirsize = self.settings.max_dirsize_for_autopreview
 			if not self.target.force_load and maxdirsize is not None \