diff options
-rw-r--r-- | ranger/actions.py | 9 | ||||
-rw-r--r-- | ranger/gui/defaultui.py | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/ranger/actions.py b/ranger/actions.py index 82d3e61e..f4c13ad2 100644 --- a/ranger/actions.py +++ b/ranger/actions.py @@ -93,6 +93,9 @@ class Actions(EnvironmentAware, SettingsAware): movedown = len(sel) == 1 if movedown: self.move_pointer(relative=1) + + if hasattr(self.ui, 'redraw_main_column'): + self.ui.redraw_main_column() def tag_remove(self, movedown=None): try: @@ -108,6 +111,9 @@ class Actions(EnvironmentAware, SettingsAware): if movedown: self.move_pointer(relative=1) + if hasattr(self.ui, 'redraw_main_column'): + self.ui.redraw_main_column() + def enter_bookmark(self, key): """Enter the bookmark with the name <key>""" try: @@ -326,6 +332,9 @@ class Actions(EnvironmentAware, SettingsAware): if movedown: self.move_pointer(relative=1) + if hasattr(self.ui, 'redraw_main_column'): + self.ui.redraw_main_column() + # ------------------------------------ filesystem operations def copy(self): diff --git a/ranger/gui/defaultui.py b/ranger/gui/defaultui.py index ca233df9..cbc7cb08 100644 --- a/ranger/gui/defaultui.py +++ b/ranger/gui/defaultui.py @@ -92,6 +92,9 @@ class DefaultUI(UI): self.browser.visible = False self.taskview.visible = True self.taskview.focused = True + + def redraw_main_column(self): + self.browser.main_column.need_redraw = True def close_taskview(self): self.taskview.visible = False |