X-Git-Url: https://git.sommitrealweird.co.uk/curses-crossword.git/blobdiff_plain/3fc70686c19e36d7c5c490d6ebca63cff3393479..c61629808c83c4c73ca8e060ce463c1907442cd0:/curses_crossword.py diff --git a/curses_crossword.py b/curses_crossword.py index 88db74e..1576950 100755 --- a/curses_crossword.py +++ b/curses_crossword.py @@ -214,7 +214,8 @@ def crossword(stdscr, crossworddata): padtly = cury (padbry, padbrx) = stdscr.getmaxyx() - sys.stderr.write("Pady, padx, max bits: %dx%d, %dx%d\n" %(padtly, padtlx, padbry, padbrx)) + if padbry > cluespad.getmaxyx()[0] + padtly: + padbry = cluespad.getmaxyx()[0] + padtly cury = 0 cluespad.addstr(cury, curx, "Across") cury += 1