mirror of https://github.com/MidnightCommander/mc
* cmd.c (info_cmd_no_menu): Toggle info screen.
(quick_cmd_no_menu): Toggle quick view.
This commit is contained in:
parent
1f423be341
commit
83b5c737aa
|
@ -1,5 +1,8 @@
|
|||
2002-08-21 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* cmd.c (info_cmd_no_menu): Toggle info screen.
|
||||
(quick_cmd_no_menu): Toggle quick view.
|
||||
|
||||
* help.c (interactive_display): Always show button bar.
|
||||
|
||||
* widget.c (buttonbar_callback): Fix a bug that prevented the
|
||||
|
|
14
src/cmd.c
14
src/cmd.c
|
@ -1442,13 +1442,23 @@ configure_panel_listing (WPanel *p, int view_type, int use_msformat, char *user,
|
|||
void
|
||||
info_cmd_no_menu (void)
|
||||
{
|
||||
set_display_type (cpanel == left_panel ? 1 : 0, view_info);
|
||||
if (get_display_type (0) == view_info)
|
||||
set_display_type (0, view_listing);
|
||||
else if (get_display_type (1) == view_info)
|
||||
set_display_type (1, view_listing);
|
||||
else
|
||||
set_display_type (cpanel == left_panel ? 1 : 0, view_info);
|
||||
}
|
||||
|
||||
void
|
||||
quick_cmd_no_menu (void)
|
||||
{
|
||||
set_display_type (cpanel == left_panel ? 1 : 0, view_quick);
|
||||
if (get_display_type (0) == view_quick)
|
||||
set_display_type (0, view_listing);
|
||||
else if (get_display_type (1) == view_quick)
|
||||
set_display_type (1, view_listing);
|
||||
else
|
||||
set_display_type (cpanel == left_panel ? 1 : 0, view_quick);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue