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 /ranger | |
parent | 4f51adb35feb83365073444b5e31197a82bbda32 (diff) | |
download | ranger-67bb838cc2b0cfc8acb6087d694692718e7895b7.tar.gz |
fixed crash after resizing while in the middle of a key combination
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/container/environment.py | 7 |
1 files changed, 6 insertions, 1 deletions
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): |