- Properly initialize the count_win when the user turns the info window

back on (and count_win is recreated).
- Create info_win as the same size for all invocations.

PR:             37552
Submitted by:   Mark Valentine <mark@thuvia.demon.co.uk>
MFC after:      1 week
This commit is contained in:
mp 2002-05-06 00:25:36 +00:00
parent c7465abaf7
commit 2f1f47d112

View File

@ -3686,12 +3686,15 @@ create_info_window()
idlok(text_win, TRUE);
werase(text_win);
info_window = TRUE;
info_win = newwin(6, COLS, 0, 0);
info_win = newwin(5, COLS, 0, 0);
werase(info_win);
info_type = CONTROL_KEYS;
midscreen(min(scr_vert, last_line), point);
clearok(info_win, TRUE);
paint_info_win();
count_win = newwin(1, COLS, 5, 0);
leaveok(count_win, TRUE);
wrefresh(count_win);
wrefresh(text_win);
clear_com_win = TRUE;
}