From f2bc01bae95fa66b9ebbb0d7f14f851ca4a2c7fb Mon Sep 17 00:00:00 2001 From: troido Date: Mon, 13 Nov 2017 14:09:16 +0100 Subject: fixed small terminal sizes --- asciifarm/client/display/fieldpad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'asciifarm/client/display/fieldpad.py') diff --git a/asciifarm/client/display/fieldpad.py b/asciifarm/client/display/fieldpad.py index 1966611..e9e3ee1 100644 --- a/asciifarm/client/display/fieldpad.py +++ b/asciifarm/client/display/fieldpad.py @@ -39,7 +39,7 @@ class FieldPad: return x // self.charSize * self.charSize def update(self, win, force=False): - if not self.changed and not force: + if not self.changed and not force or not win: return #self.lastView = (x, y, xmax, ymax) height, width = win.getmaxyx() -- cgit