summary refs log tree commit diff stats
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
parent8895b1301b0f32a3627225810441496a3e7cb211 (diff)
downloadranger-f7db061bba50fa5a01e34fa7764e36b2646f8a3a.tar.gz
closed #73, reason was it didn't move and coords didnt get updated
-rw-r--r--TODO2
-rw-r--r--ranger/gui/displayable.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/TODO b/TODO
index 98d459d7..020ac20a 100644
--- a/TODO
+++ b/TODO
@@ -72,7 +72,7 @@ Bugs
    (X) #65  10/02/16  "source ranger ranger some/file.txt" shouldn't cd after exit
    (X) #67  10/03/08  terminal title in tty
    (X) #69  10/03/11  tab-completion breaks with Apps subclass
-   ( ) #73  10/03/21  when clicking on the first column, it goes 1x down
+   (X) #73  10/03/21  when clicking on the first column, it goes 1x down
    (X) #74  10/03/21  console doesn't scroll
 
 
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: