From b53a3a098144ed87d51076c87beacac02d039a70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Sun, 4 Oct 2020 14:20:10 +0200 Subject: Revisit zsh integration zsh's antisocial behaviour was fairly promptly fixed (thanks to Stephane Chazelas and his patience). zle-line-init and zle-line-reset seem to be user-defined widgets and the order inverted. Put zle-line-init before reset-prompt because some people do weird things in there. --- sdn.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sdn.cpp') diff --git a/sdn.cpp b/sdn.cpp index 5549beb..3a3ab26 100644 --- a/sdn.cpp +++ b/sdn.cpp @@ -1654,7 +1654,8 @@ fun save_config () { } int main (int argc, char *argv[]) { - // That bitch zle closes stdin before exec without redirection + // zsh before 5.4 may close stdin before exec without redirection, + // since then it redirects stdin to /dev/null (void) close (STDIN_FILENO); if (open ("/dev/tty", O_RDWR)) { cerr << "cannot open tty" << endl; -- cgit v1.2.3