mirror of
https://github.com/mintycube/st.git
synced 2024-10-22 14:05:49 +02:00
Launch scroll program with the default shell
This commit is contained in:
parent
a1d06b7b98
commit
18acc55f12
9
st.c
9
st.c
@ -744,9 +744,12 @@ execsh(char *cmd, char **args)
|
||||
if (args) {
|
||||
prog = args[0];
|
||||
arg = NULL;
|
||||
} else if (scroll || utmp) {
|
||||
prog = scroll ? scroll : utmp;
|
||||
arg = scroll ? utmp : NULL;
|
||||
} else if (scroll) {
|
||||
prog = scroll;
|
||||
arg = utmp ? utmp : sh;
|
||||
} else if (utmp) {
|
||||
prog = utmp;
|
||||
arg = NULL;
|
||||
} else {
|
||||
prog = sh;
|
||||
arg = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user