[peers] Quick fix to out-of-bounds drawing issue

master
Daniel Edgecumbe 7 years ago
parent a6ae0e464e
commit 7d45bd81a7

@ -30,6 +30,11 @@ class PeersView(view.View):
window_height = 20
offset = 0
for index in range(offset, offset+window_height):
# TODO: replace this hack with real scrolling.
if index > 15 and index < len(po):
self._pad.addstr(1+index-offset, 1, "<some peers were omitted>")
break
if index < len(po):
peer = po[index]

Loading…
Cancel
Save