top: correct, improve or otherwise tweak some comments

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2013-07-04 00:00:00 -05:00 committed by Jaromir Capik
parent 9315d00f01
commit 6967bf80a6

View File

@ -2794,7 +2794,7 @@ static void insp_cnt_nl (void) {
Insp_p[0] = Insp_buf; Insp_p[0] = Insp_buf;
Insp_p[Insp_nl++] = cur; Insp_p[Insp_nl++] = cur;
Insp_p[Insp_nl] = end; Insp_p[Insp_nl] = end;
if ((end - cur) == 1) // if there's a eof null delimiter, if ((end - cur) == 1) // if there's an eof null delimiter,
--Insp_nl; // don't count it as a new line --Insp_nl; // don't count it as a new line
} // end: insp_cnt_nl } // end: insp_cnt_nl
@ -5483,6 +5483,7 @@ static void frame_make (void) {
Max_lines = (Screen_rows - Msg_row) - 1; Max_lines = (Screen_rows - Msg_row) - 1;
OFFw(w, INFINDS_xxx); OFFw(w, INFINDS_xxx);
// one way or another, rid us of any prior frame's msg
if (VIZISw(w) && CHKw(w, View_SCROLL)) show_scroll(); if (VIZISw(w) && CHKw(w, View_SCROLL)) show_scroll();
else PUTT("%s%s", tg2(0, Msg_row), Cap_clr_eol); else PUTT("%s%s", tg2(0, Msg_row), Cap_clr_eol);
@ -5501,8 +5502,7 @@ static void frame_make (void) {
} }
} }
/* clear to end-of-screen (critical if last window is 'idleps off'), /* clear to end-of-screen - critical if last window is 'idleps off'
then put the cursor in-its-place, and rid us of any prior frame's msg
(main loop must iterate such that we're always called before sleep) */ (main loop must iterate such that we're always called before sleep) */
if (scrlins < Max_lines) { if (scrlins < Max_lines) {
putp(Cap_nl_clreos); putp(Cap_nl_clreos);