diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2020-10-04 14:20:10 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2020-10-04 14:27:51 +0200 |
commit | b53a3a098144ed87d51076c87beacac02d039a70 (patch) | |
tree | 7920b76d3160cfcf0e7203ba949c29a5bb17a361 /sdn.cpp | |
parent | cf80a155017c2eecf506ac155c98aed5e962b4a0 (diff) | |
download | sdn-b53a3a098144ed87d51076c87beacac02d039a70.tar.gz sdn-b53a3a098144ed87d51076c87beacac02d039a70.tar.xz sdn-b53a3a098144ed87d51076c87beacac02d039a70.zip |
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.
Diffstat (limited to 'sdn.cpp')
-rw-r--r-- | sdn.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |