Don't refresh pads with invalid coordinates. The window should be fully resizable, closes #20
This commit is contained in:
@ -19,5 +19,5 @@ class LogsDisplay(Display):
|
||||
for i in range(min(self.height, len(messages))):
|
||||
self.addstr(self.pad, self.height - i - 1, self.x,
|
||||
messages[i][:self.width])
|
||||
self.pad.refresh(0, 0, self.y, self.x, self.y + self.height - 1,
|
||||
self.x + self.width - 1)
|
||||
self.refresh_pad(self.pad, 0, 0, self.y, self.x,
|
||||
self.y + self.height - 1, self.x + self.width - 1)
|
||||
|
Reference in New Issue
Block a user