diff options
| author | troido <troido@hotmail.com> | 2017-11-13 14:09:16 +0100 |
|---|---|---|
| committer | troido <troido@hotmail.com> | 2017-11-13 14:09:16 +0100 |
| commit | f2bc01bae95fa66b9ebbb0d7f14f851ca4a2c7fb (patch) | |
| tree | d67d2da36cc607983323be7375d24b40349466eb /asciifarm/client/display/inventorypad.py | |
| parent | 8f614ac7812edf99e019bb318655f172d095f2f5 (diff) | |
fixed small terminal sizes
Diffstat (limited to 'asciifarm/client/display/inventorypad.py')
| -rw-r--r-- | asciifarm/client/display/inventorypad.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asciifarm/client/display/inventorypad.py b/asciifarm/client/display/inventorypad.py index 8ef3296..6ad00c4 100644 --- a/asciifarm/client/display/inventorypad.py +++ b/asciifarm/client/display/inventorypad.py @@ -29,7 +29,7 @@ class InventoryPad: self.changed = False height, width = win.getmaxyx() win.erase() - win.addstr(0,0, self.title + ":\n") + win.addstr(0,0, (self.title + ":")[:width]) for i, item in enumerate(self.items[:height-1]): win.addstr(i+1, 2, item) win.noutrefresh() |
