File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1526,6 +1526,22 @@ set_desktop_notifications(const char *val)
15261526 }
15271527}
15281528
1529+ static void
1530+ set_ls_mode (void )
1531+ {
1532+ xargs .list_and_quit = 1 ;
1533+ xargs .no_dirjump = 1 ;
1534+ xargs .no_eln = 1 ;
1535+ xargs .names_last = 1 ;
1536+ xargs .restore_last_path = conf .restore_last_path = 0 ;
1537+ xargs .clear_screen = 0 ;
1538+ xargs .classify = 0 ;
1539+ xargs .show_hidden = 0 ;
1540+ xargs .follow_symlinks = 0 ;
1541+ xargs .group_dirs = GROUP_DIRS_FALSE ;
1542+ xargs .sort = SNAME ;
1543+ }
1544+
15291545static void
15301546xset_pager_view (const char * arg )
15311547{
@@ -1971,14 +1987,7 @@ parse_cmdline_args(const int argc, char **argv)
19711987 xargs .restore_last_path = conf .restore_last_path = 0 ;
19721988 break ;
19731989 case LOPT_LS :
1974- xargs .list_and_quit = 1 ;
1975- xargs .no_dirjump = 1 ;
1976- xargs .restore_last_path = conf .restore_last_path = 0 ;
1977- xargs .clear_screen = 0 ;
1978- xargs .no_eln = 1 ;
1979- xargs .names_last = 1 ;
1980- xargs .classify = 0 ;
1981- break ;
1990+ set_ls_mode (); break ;
19821991 case LOPT_LSCOLORS :
19831992 xargs .lscolors = 1 ; break ;
19841993 case LOPT_MAX_DIRHIST :
You can’t perform that action at this time.
0 commit comments