summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-28 16:46:20 +0100
committerFlorent Le Coz <louiz@louiz.org>2012-01-26 10:05:32 +0100
commit3d879a6677f665b10fde3c252f32295dcff22c0f (patch)
tree086472ac921ed35d3b5e730da4e6c7174aecb8e1 /src
parent8e2e1fcd4e59f67aed8cd248f3202fc10971cbde (diff)
downloadpoezio-3d879a6677f665b10fde3c252f32295dcff22c0f.tar.gz
poezio-3d879a6677f665b10fde3c252f32295dcff22c0f.tar.bz2
poezio-3d879a6677f665b10fde3c252f32295dcff22c0f.tar.xz
poezio-3d879a6677f665b10fde3c252f32295dcff22c0f.zip
Curses operations must operate within the lock
Diffstat (limited to 'src')
-rw-r--r--src/windows.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows.py b/src/windows.py
index 81153239..80a8bbb1 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -660,8 +660,8 @@ class TextWin(Win):
lines = self.built_lines[-self.height:]
else:
lines = self.built_lines[-self.height-self.pos:-self.pos]
- self._win.move(0, 0)
with g_lock:
+ self._win.move(0, 0)
self._win.erase()
for y, line in enumerate(lines):
if line: