diff options
Diffstat (limited to 'ranger/gui/widgets/browsercolumn.py')
-rw-r--r-- | ranger/gui/widgets/browsercolumn.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py index 55be3569..155c4dc6 100644 --- a/ranger/gui/widgets/browsercolumn.py +++ b/ranger/gui/widgets/browsercolumn.py @@ -20,6 +20,7 @@ class BrowserColumn(Pager): display_vcsstate = True scroll_begin = 0 target = None + last_target_mod_time = 0 last_redraw_time = -1 ellipsis = { False: '~', True: '…' } @@ -148,7 +149,8 @@ class BrowserColumn(Pager): self.need_redraw = True self.old_thisfile = self.target.pointed_obj - if self.target.load_content_if_outdated() \ + if self.last_target_mod_time < self.target.mod_time \ + or self.target.load_content_if_outdated() \ or self.target.sort_if_outdated() \ or self.last_redraw_time < self.target.last_update_time: self.need_redraw = True |