diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-03-24 18:26:13 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-03-24 18:26:13 +0000 |
commit | 56ff4b760e0a3f9b6c8d00015bbb4810ddab0db7 (patch) | |
tree | 788309324f2a99c12b0603483323a0b8d7103621 /src/window.py | |
parent | 19d86ea5ea5f135c5ad229add1a0d173ac44d2c9 (diff) | |
download | poezio-56ff4b760e0a3f9b6c8d00015bbb4810ddab0db7.tar.gz poezio-56ff4b760e0a3f9b6c8d00015bbb4810ddab0db7.tar.bz2 poezio-56ff4b760e0a3f9b6c8d00015bbb4810ddab0db7.tar.xz poezio-56ff4b760e0a3f9b6c8d00015bbb4810ddab0db7.zip |
fixed #1187
Diffstat (limited to 'src/window.py')
-rw-r--r-- | src/window.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/window.py b/src/window.py index 0df6c7e7..f0ce7aad 100644 --- a/src/window.py +++ b/src/window.py @@ -26,8 +26,15 @@ class Win(object): def _resize(self, height, width, y, x, parent_win): self.height, self.width, self.x, self.y = height, width, x, y - self.win = parent_win.subwin(height, width, y, x) - self.win.leaveok(1) + try: + self.win = parent_win.subwin(height, width, y, x) + self.win.leaveok(1) + except: + # Happens when the C function subwin fails. The man + # doesn't give a reason for this to happen, so I can't + # really fix this. + # just don't crash when this happens. + pass def refresh(self): self.win.noutrefresh() |