Adding tests

This commit is contained in:
Michael Lazar
2017-09-10 21:47:55 -04:00
parent 982861560a
commit 8b63e1c5de
3 changed files with 46 additions and 3 deletions

View File

@@ -282,7 +282,8 @@ class Terminal(object):
row, col = window.getyx()
_, max_cols = window.getmaxyx()
if max_cols - col - 1 <= 0:
n_cols = max_cols - col - 1
if n_cols <= 0:
# Trying to draw outside of the screen bounds
return