Module Name: src Committed By: christos Date: Tue May 13 20:06:41 UTC 2014
Modified Files: src/external/bsd/top/dist: display.c Log Message: Don't die if we resize to smaller than Y_LINES. The display could do better, but it recovers if we grow. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/external/bsd/top/dist/display.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/top/dist/display.c diff -u src/external/bsd/top/dist/display.c:1.9 src/external/bsd/top/dist/display.c:1.10 --- src/external/bsd/top/dist/display.c:1.9 Sat Jul 3 09:18:57 2010 +++ src/external/bsd/top/dist/display.c Tue May 13 16:06:41 2014 @@ -723,8 +723,9 @@ display_resize() /* adjust total lines on screen to lines available for procs */ if (top_lines < y_procs) - return -1; - top_lines -= y_procs; + top_lines = 0; + else + top_lines -= y_procs; /* return number of lines available */ return top_lines;