summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-01 22:54:34 +0100
committerhut <hut@lavabit.com>2010-01-01 22:54:34 +0100
commite07cfa317933374e05ca8c4776e2a131724057d8 (patch)
treeadcc19fd38ee3fb6d99b59a7444d25da7a25ad6f
parentca665e06a44cf5e64646b1ad3782965f175eebc6 (diff)
downloadranger-e07cfa317933374e05ca8c4776e2a131724057d8.tar.gz
ui: redraw when marking/tags change
-rw-r--r--ranger/actions.py9
-rw-r--r--ranger/gui/defaultui.py3
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