* 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.
Этот коммит содержится в:
родитель
be3212ccf7
Коммит
03e1f0638e
@ -1,5 +1,9 @@
|
|||||||
2002-09-01 Pavel Roskin <proski@gnu.org>
|
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
|
* man2hlp.c: Move handling of .SH and NODE to a separate
|
||||||
function handle_node(). Don't output empty nodes except in the
|
function handle_node(). Don't output empty nodes except in the
|
||||||
table of contents.
|
table of contents.
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
/* "$Id$" */
|
/* "$Id$" */
|
||||||
|
|
||||||
static char *data; /* Pointer to the loaded data file */
|
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 int history_ptr; /* For the history queue */
|
||||||
static char *main_node; /* The main node */
|
static char *main_node; /* The main node */
|
||||||
static char *last_shown = 0; /* Last byte shown in a screen */
|
static char *last_shown = 0; /* Last byte shown in a screen */
|
||||||
@ -780,8 +780,7 @@ interactive_display (char *filename, char *node)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (help_lines > LINES - 4)
|
help_lines = min (LINES - 4, max (2 * LINES / 3, 18));
|
||||||
help_lines = LINES - 4;
|
|
||||||
|
|
||||||
whelp = create_dlg (0, 0, help_lines+4, HELP_WINDOW_WIDTH+4, dialog_colors,
|
whelp = create_dlg (0, 0, help_lines+4, HELP_WINDOW_WIDTH+4, dialog_colors,
|
||||||
help_callback, "[Help]", "help",
|
help_callback, "[Help]", "help",
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user