mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-08 20:41:59 +03:00
* cmd.c (toggle_listing_cmd): Included the brief listing mode in
the list of listing modes that can be switched through using Alt-t.
This commit is contained in:
parent
8f683b9789
commit
cbf2c616ff
@ -1,3 +1,9 @@
|
||||
2006-01-28 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
* cmd.c (toggle_listing_cmd): Included the brief listing mode in
|
||||
the list of listing modes that can be switched through using
|
||||
Alt-t.
|
||||
|
||||
2006-01-27 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
* Makefile.am: cons.saver is installed in $(pkglibexecdir), not
|
||||
|
19
src/cmd.c
19
src/cmd.c
@ -1351,22 +1351,7 @@ toggle_listing_cmd (void)
|
||||
{
|
||||
int current = get_current_index ();
|
||||
WPanel *p = (WPanel *) get_panel_widget (current);
|
||||
int list_mode = p->list_type;
|
||||
int m;
|
||||
|
||||
switch (list_mode){
|
||||
case list_full:
|
||||
case list_brief:
|
||||
m = list_long;
|
||||
break;
|
||||
case list_long:
|
||||
m = list_user;
|
||||
break;
|
||||
default:
|
||||
m = list_full;
|
||||
}
|
||||
if (set_basic_panel_listing_to (current, m))
|
||||
return;
|
||||
set_basic_panel_listing_to (current, list_full);
|
||||
|
||||
set_basic_panel_listing_to (current, (p->list_type + 1) % LIST_TYPES);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user