summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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 3543a171..a7cee054 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -501,7 +501,7 @@ class TextWin(Win):
Build the Line objects from the messages, and then write
them in the text area
"""
- if self.height <= 0:
+ if self.height <= 0 or not self.built_lines:
return
if self.pos != 0:
lines = self.built_lines[-self.height-self.pos:-self.pos]
@@ -570,7 +570,7 @@ class TextWin(Win):
self.addstr(word[1:-1], curses.color_pair(theme.COLOR_BRACKETED_WORD))
else:
self.addstr(word, curses.color_pair(color))
- self._win.addch(' ')
+ self.addstr(' ')
def write_nickname(self, nickname, color):
"""