summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)