summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-03-27 04:36:08 +0100
committerhut <hut@lavabit.com>2010-03-27 04:36:08 +0100
commitf7db061bba50fa5a01e34fa7764e36b2646f8a3a (patch)
treeb62db95d20e259d0e876e9511b6425850288f190 /ranger
parent8895b1301b0f32a3627225810441496a3e7cb211 (diff)
downloadranger-f7db061bba50fa5a01e34fa7764e36b2646f8a3a.tar.gz
closed #73, reason was it didn't move and coords didnt get updated
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/displayable.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/gui/displayable.py b/ranger/gui/displayable.py
index ceefb3f1..88a78b37 100644
--- a/ranger/gui/displayable.py
+++ b/ranger/gui/displayable.py
@@ -72,6 +72,7 @@ class Displayable(EnvironmentAware, FileManagerAware, CursesShortcuts):
 		self.hei = 0
 		self.paryx = (0, 0)
 		self.parent = None
+		self.fresh = True
 
 		self._old_visible = self.visible
 
@@ -154,7 +155,7 @@ class Displayable(EnvironmentAware, FileManagerAware, CursesShortcuts):
 
 	def resize(self, y, x, hei=None, wid=None):
 		"""Resize the widget"""
-		do_move = False
+		do_move = self.fresh
 		try:
 			maxy, maxx = self.env.termsize
 		except TypeError:
@@ -212,6 +213,7 @@ class Displayable(EnvironmentAware, FileManagerAware, CursesShortcuts):
 			except:
 				pass
 
+			self.fresh = False
 			self.paryx = self.win.getparyx()
 			self.y, self.x = self.paryx
 			if self.parent: