From e07cfa317933374e05ca8c4776e2a131724057d8 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 1 Jan 2010 22:54:34 +0100 Subject: ui: redraw when marking/tags change --- ranger/actions.py | 9 +++++++++ ranger/gui/defaultui.py | 3 +++ 2 files changed, 12 insertions(+) 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 """ 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 -- cgit 1.4.1-2-gfad0