about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-05-01 19:58:58 +0200
committerhut <hut@lavabit.com>2013-05-01 19:58:58 +0200
commitbd8ca128ac81c0fca1490136e50038bfa2cf2a0e (patch)
treeb5e52b79a1194cd697f59747a3c4cd4d85f21cbf
parent58aa2b4541100201e91934a807c024d81142a258 (diff)
downloadranger-bd8ca128ac81c0fca1490136e50038bfa2cf2a0e.tar.gz
core.actions: update preview when changing file in pager
-rw-r--r--ranger/core/actions.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 1816867b..80b35970 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -411,6 +411,9 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
                             cwd.mark_item(f, False)
                         for f in old - current - targets:
                             cwd.mark_item(f, True)
+                if self.ui.pager.visible:
+                    self.display_file()
+
 
     def move_parent(self, n, narg=None):
         self.change_mode('normal')