]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
redisplay also last line
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 20 Mar 2008 18:51:34 +0000 (19:51 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 21 Mar 2008 11:58:40 +0000 (12:58 +0100)
newt.c

diff --git a/newt.c b/newt.c
index 51b5a2dfe488416fe79c69fee6fe46fbe50f5441..e1425586666739d205899e964969611f94a7abf6 100644 (file)
--- a/newt.c
+++ b/newt.c
@@ -214,7 +214,7 @@ static int getkey() {
     int c;
 
     while ((c = SLang_getkey()) == '\xC') { /* if Ctrl-L redraw whole screen */
-        SLsmg_touch_lines (0, SLtt_Screen_Rows - 1);
+        SLsmg_touch_lines(0, SLtt_Screen_Rows);
         SLsmg_refresh();
     }
     return c;
@@ -268,7 +268,7 @@ void newtResizeScreen(int redraw) {
     SLtt_get_screen_size();
     /* SLsmg_reinit_smg(); */
     if (redraw) {
-        SLsmg_touch_lines (0, SLtt_Screen_Rows - 1);
+        SLsmg_touch_lines(0, SLtt_Screen_Rows);
         newtRefresh();
     }
 }
@@ -1017,6 +1017,6 @@ void newtCursorOn(void) {
 
 void newtTrashScreen(void) {
     if (trashScreen)
-       SLsmg_touch_lines (0, SLtt_Screen_Rows - 1);
+       SLsmg_touch_lines(0, SLtt_Screen_Rows);
 }