Created
November 10, 2012 14:41
-
-
Save anonymous/4051291 to your computer and use it in GitHub Desktop.
Absolutely horrific workaround
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tasknc.c b/tasknc.c | |
index d0c83bd..fb4ad55 100644 | |
--- a/tasknc.c | |
+++ b/tasknc.c | |
@@ -793,6 +793,11 @@ void wipe_screen(WINDOW *win, const short startl, const short stopl) /* {{{ */ | |
*/ | |
int y, x; | |
+ if ( win == NULL ) | |
+ { | |
+ win = newwin(1, 1, 0, 0); | |
+ } | |
+ | |
wattrset(win, COLOR_PAIR(0)); | |
for (y=startl; y<=stopl; y++) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment