~petersanchez/st

c1145268f6b6c6f03a8bec1c09d356d6a4eba77e — Quentin Rameau 4 years ago 0b73612
Launch scroll program with the default shell
1 files changed, 6 insertions(+), 3 deletions(-)

M st.c
M st.c => st.c +6 -3
@@ 682,9 682,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;