Curses operations must operate within the lock
This commit is contained in:
parent
122d700ac3
commit
2f8f4eccb8
1 changed files with 1 additions and 1 deletions
|
@ -660,8 +660,8 @@ class TextWin(Win):
|
||||||
lines = self.built_lines[-self.height:]
|
lines = self.built_lines[-self.height:]
|
||||||
else:
|
else:
|
||||||
lines = self.built_lines[-self.height-self.pos:-self.pos]
|
lines = self.built_lines[-self.height-self.pos:-self.pos]
|
||||||
self._win.move(0, 0)
|
|
||||||
with g_lock:
|
with g_lock:
|
||||||
|
self._win.move(0, 0)
|
||||||
self._win.erase()
|
self._win.erase()
|
||||||
for y, line in enumerate(lines):
|
for y, line in enumerate(lines):
|
||||||
if line:
|
if line:
|
||||||
|
|
Loading…
Reference in a new issue