1
1

* help.c (interactive_display): Don't reuse the old value of

help_lines - LINES could have changed.  Scale height better for
terminals with many lines - use 2/3 of the full screen.
Этот коммит содержится в:
Pavel Roskin 2002-09-02 02:40:22 +00:00
родитель be3212ccf7
Коммит 03e1f0638e
2 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -1,5 +1,9 @@
2002-09-01 Pavel Roskin <proski@gnu.org>
* help.c (interactive_display): Don't reuse the old value of
help_lines - LINES could have changed. Scale height better for
terminals with many lines - use 2/3 of the full screen.
* man2hlp.c: Move handling of .SH and NODE to a separate
function handle_node(). Don't output empty nodes except in the
table of contents.

Просмотреть файл

@ -60,7 +60,7 @@
/* "$Id$" */
static char *data; /* Pointer to the loaded data file */
static int help_lines = 18; /* Lines in help viewer */
static int help_lines; /* Lines in help viewer */
static int history_ptr; /* For the history queue */
static char *main_node; /* The main node */
static char *last_shown = 0; /* Last byte shown in a screen */
@ -780,8 +780,7 @@ interactive_display (char *filename, char *node)
return;
}
if (help_lines > LINES - 4)
help_lines = LINES - 4;
help_lines = min (LINES - 4, max (2 * LINES / 3, 18));
whelp = create_dlg (0, 0, help_lines+4, HELP_WINDOW_WIDTH+4, dialog_colors,
help_callback, "[Help]", "help",