summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2011-01-05 01:06:25 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2011-01-05 01:06:25 +0000
commit4ace90190902f0cd174a6c52343795e38a1f0df7 (patch)
tree6374bb5cad2965e3aafe480782b2ef501f19e1c8 /src
parent2e285cf426f588438dd073b4ce8737f3c8ba8bd3 (diff)
downloadpoezio-4ace90190902f0cd174a6c52343795e38a1f0df7.tar.gz
poezio-4ace90190902f0cd174a6c52343795e38a1f0df7.tar.bz2
poezio-4ace90190902f0cd174a6c52343795e38a1f0df7.tar.xz
poezio-4ace90190902f0cd174a6c52343795e38a1f0df7.zip
fix the refresh of textwin when there's no message yet
Diffstat (limited to 'src')
-rw-r--r--src/windows.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/windows.py b/src/windows.py
index 744443b6..d85548a5 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -56,9 +56,9 @@ class Win(object):
pass
def _resize(self, height, width, y, x, parent_win):
+ self.height, self.width, self.x, self.y = height, width, x, y
if height == 0 or width == 0:
return
- self.height, self.width, self.x, self.y = height, width, x, y
self._win = curses.newwin(height, width, y, x)
def _refresh(self):
@@ -534,7 +534,7 @@ class TextWin(Win):
Build the Line objects from the messages, and then write
them in the text area
"""
- if self.height <= 0 or not self.built_lines:
+ if self.height <= 0:
return
if self.pos != 0:
lines = self.built_lines[-self.height-self.pos:-self.pos]