about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--TODO2
-rw-r--r--ranger/container/environment.py7
2 files changed, 7 insertions, 2 deletions
diff --git a/TODO b/TODO
index ffafc92d..cf99c122 100644
--- a/TODO
+++ b/TODO
@@ -26,4 +26,4 @@ Bugs
 
    ( ) #17  10/01/01  why do bookmarks disappear sometimes?
    ( ) #18  10/01/01  fix notify widget (by adding a LogView?)
-   ( ) #19  10/01/01  resizing after pressing g
+   (X) #19  10/01/01  resizing after pressing g
diff --git a/ranger/container/environment.py b/ranger/container/environment.py
index 3c11ff54..24257952 100644
--- a/ranger/container/environment.py
+++ b/ranger/container/environment.py
@@ -3,6 +3,7 @@ import os
 from ranger.fsobject.directory import Directory, NoDirectoryGiven
 from ranger.container import KeyBuffer, History
 from ranger.shared import SettingsAware
+import curses
 
 class Environment(SettingsAware):
 	"""A collection of data which is relevant for more than
@@ -34,7 +35,11 @@ class Environment(SettingsAware):
 
 	def key_append(self, key):
 		"""Append a key to the keybuffer"""
-		from ranger import log
+		
+		# special keys:
+		if key == curses.KEY_RESIZE:
+			self.keybuffer.clear()
+
 		self.keybuffer.append(key)
 
 	def key_clear(self):