diff options
author | hut <hut@lavabit.com> | 2010-01-01 16:54:24 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-01-01 16:54:24 +0100 |
commit | 67bb838cc2b0cfc8acb6087d694692718e7895b7 (patch) | |
tree | f17340ea69e63d962015a5c3bdb11ac928ea693b | |
parent | 4f51adb35feb83365073444b5e31197a82bbda32 (diff) | |
download | ranger-67bb838cc2b0cfc8acb6087d694692718e7895b7.tar.gz |
fixed crash after resizing while in the middle of a key combination
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | ranger/container/environment.py | 7 |
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): |