summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-06 00:15:38 +0100
committermathieui <mathieui@mathieui.net>2011-11-06 00:15:38 +0100
commite6797c29a5f20b50ed35ef25922596bab047d0f6 (patch)
tree0444b05c478e7b7266ae084379670445272561c6 /src/windows.py
parentaf6e5345781381fbfab48552684a2c621989a24d (diff)
downloadpoezio-e6797c29a5f20b50ed35ef25922596bab047d0f6.tar.gz
poezio-e6797c29a5f20b50ed35ef25922596bab047d0f6.tar.bz2
poezio-e6797c29a5f20b50ed35ef25922596bab047d0f6.tar.xz
poezio-e6797c29a5f20b50ed35ef25922596bab047d0f6.zip
Smaller means being insane, and even then, it should’nt bug too much
Fixes #2259
Diffstat (limited to 'src/windows.py')
-rw-r--r--src/windows.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/windows.py b/src/windows.py
index 1612e416..1701fee7 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -62,9 +62,10 @@ class Win(object):
self._win = None
def _resize(self, height, width, y, x):
- self.height, self.width, self.x, self.y = height, width, x, y
if height == 0 or width == 0:
+ self.height, self.width = height, width
return
+ self.height, self.width, self.x, self.y = height, width, x, y
if not self._win:
self._win = curses.newwin(height, width, y, x)
else: