Merges from Irssi CVS.
[crypto.git] / apps / irssi / src / fe-text / term-terminfo.c
index 5716b36c0655fa3f8dc383ef506fe472e321a955..ddb00441d0b81204d5f22cc2391bc7072cea9cae 100644 (file)
@@ -119,6 +119,7 @@ int term_init(void)
 void term_deinit(void)
 {
        if (current_term != NULL) {
+               signal(SIGCONT, SIG_DFL);
                g_source_remove(redraw_tag);
 
                term_common_deinit();
@@ -375,7 +376,7 @@ static void term_printed_text(int count)
        vcx += count;
        while (vcx >= term_width) {
                vcx -= term_width;
-               if (vcy < term_height) vcy++;
+               if (vcy < term_height-1) vcy++;
                if (vcx > 0) term_lines_empty[vcy] = FALSE;
        }
 }