aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--st.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/st.c b/st.c
index bd8b815..bcf74b3 100644
--- a/st.c
+++ b/st.c
@@ -1430,8 +1430,7 @@ ttynew(void)
1430 if (opt_line) { 1430 if (opt_line) {
1431 if ((cmdfd = open(opt_line, O_RDWR)) < 0) 1431 if ((cmdfd = open(opt_line, O_RDWR)) < 0)
1432 die("open line failed: %s\n", strerror(errno)); 1432 die("open line failed: %s\n", strerror(errno));
1433 close(0); 1433 dup2(cmdfd, 0);
1434 dup(cmdfd);
1435 stty(); 1434 stty();
1436 return; 1435 return;
1437 } 1436 }