1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-04 17:15:50 +00:00

- 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:
Mark Peek 2002-05-06 00:25:36 +00:00
parent e86256c1f4
commit 802e753167
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96088

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;
}