summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-02-17 03:58:06 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-02-17 03:58:06 +0000
commit5d7bb0fd6751e28320dad715e98bfe8112ee71f6 (patch)
treed700bf97caf98d932ddfa6fa305f0f56232a4781 /src
parent8b1487c3c350468bd5443d4c2a97898784e5760e (diff)
downloadpoezio-5d7bb0fd6751e28320dad715e98bfe8112ee71f6.tar.gz
poezio-5d7bb0fd6751e28320dad715e98bfe8112ee71f6.tar.bz2
poezio-5d7bb0fd6751e28320dad715e98bfe8112ee71f6.tar.xz
poezio-5d7bb0fd6751e28320dad715e98bfe8112ee71f6.zip
#1176, even after a resize
Diffstat (limited to 'src')
-rw-r--r--src/window.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/window.py b/src/window.py
index 196446af..c6588da4 100644
--- a/src/window.py
+++ b/src/window.py
@@ -228,6 +228,7 @@ class TextWin(object):
self.wins[winname]._resize(height, width, y, x, stdscr)
self.wins[winname].win.idlok(True)
self.wins[winname].win.scrollok(True)
+ self.wins[winname].win.leaveok(1)
class Input(Win):
"""
@@ -248,6 +249,7 @@ class Input(Win):
if not visible:
return
self._resize(height, width, y, x, stdscr)
+ self.win.leaveok(0)
self.win.clear()
self.win.addnstr(0, 0, self.text.encode('utf-8'), self.width-1)