* layout.c (setup_panels): Clean the hint bar if it's enabled.
Bug reported by Adam Byrtek <alpha@debian.org>
Этот коммит содержится в:
родитель
da0c9299ad
Коммит
89804295bd
@ -1,4 +1,9 @@
|
||||
2002-12-21 Adam Byrtek <alpha@debian.org>
|
||||
2002-12-26 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* layout.c (setup_panels): Clean the hint bar if it's enabled.
|
||||
Bug reported by Adam Byrtek <alpha@debian.org>
|
||||
|
||||
2002-12-26 Adam Byrtek <alpha@debian.org>
|
||||
|
||||
* main.c (update_xterm_title_path): New function, display
|
||||
current path in the xterm window title.
|
||||
|
25
src/layout.c
25
src/layout.c
@ -643,24 +643,26 @@ setup_panels (void)
|
||||
int minimum;
|
||||
if (output_lines < 0)
|
||||
output_lines = 0;
|
||||
height = LINES - keybar_visible - command_prompt - menubar_visible
|
||||
- output_lines - message_visible;
|
||||
height =
|
||||
LINES - keybar_visible - command_prompt - menubar_visible -
|
||||
output_lines - message_visible;
|
||||
minimum = MINHEIGHT * (1 + horizontal_split);
|
||||
if (height < minimum) {
|
||||
output_lines -= minimum - height;
|
||||
height = minimum;
|
||||
}
|
||||
} else {
|
||||
height = LINES - menubar_visible - command_prompt -
|
||||
keybar_visible - message_visible;
|
||||
height =
|
||||
LINES - menubar_visible - command_prompt - keybar_visible -
|
||||
message_visible;
|
||||
}
|
||||
check_split ();
|
||||
start_y = menubar_visible;
|
||||
|
||||
/* The column computing is defered until panel_do_cols */
|
||||
if (horizontal_split) {
|
||||
widget_set_size (panels[0].widget, start_y, 0,
|
||||
first_panel_size, 0);
|
||||
widget_set_size (panels[0].widget, start_y, 0, first_panel_size,
|
||||
0);
|
||||
|
||||
widget_set_size (panels[1].widget, start_y + first_panel_size, 0,
|
||||
height - first_panel_size, 0);
|
||||
@ -698,18 +700,19 @@ setup_panels (void)
|
||||
|
||||
/* Output window */
|
||||
if (console_flag && output_lines) {
|
||||
output_start_y = LINES - command_prompt - keybar_visible -
|
||||
output_lines;
|
||||
output_start_y =
|
||||
LINES - command_prompt - keybar_visible - output_lines;
|
||||
show_console_contents (output_start_y,
|
||||
LINES - output_lines - keybar_visible - 1,
|
||||
LINES - keybar_visible - 1);
|
||||
}
|
||||
if (message_visible)
|
||||
if (message_visible) {
|
||||
widget_set_size (&the_hint->widget, height + start_y, 0, 1, COLS);
|
||||
else
|
||||
set_hintbar (""); /* clean up the line */
|
||||
load_hint ();
|
||||
} else
|
||||
widget_set_size (&the_hint->widget, 0, 0, 0, 0);
|
||||
|
||||
load_hint ();
|
||||
update_xterm_title_path ();
|
||||
}
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user