From c61629808c83c4c73ca8e060ce463c1907442cd0 Mon Sep 17 00:00:00 2001 From: Brett Parker Date: Mon, 20 Jul 2009 12:50:39 +0100 Subject: [PATCH] make it so that if the pad for the clues doesn't cover the whole rest of the screen we only refresh/overlay the bit that counts --- curses_crossword.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/curses_crossword.py b/curses_crossword.py index e2b5bb6..1576950 100755 --- a/curses_crossword.py +++ b/curses_crossword.py @@ -214,6 +214,8 @@ def crossword(stdscr, crossworddata): padtly = cury (padbry, padbrx) = stdscr.getmaxyx() + if padbry > cluespad.getmaxyx()[0] + padtly: + padbry = cluespad.getmaxyx()[0] + padtly cury = 0 cluespad.addstr(cury, curx, "Across") cury += 1 -- 2.39.5