From b53a3a098144ed87d51076c87beacac02d039a70 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch 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. --- README.adoc | 4 ++-- sdn.cpp | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.adoc b/README.adoc index f49c8c0..b9ddbd5 100644 --- a/README.adoc +++ b/README.adoc @@ -54,7 +54,7 @@ To start using this navigator, put the following in your '.zshrc': ---- sdn-navigate () { - # ... possibly zle-line-init + # ... possibly zle-line-finish while eval "`sdn "$BUFFER" "$CURSOR"`"; do [ -z "$cd" ] || cd "$cd" [ -z "$insert" ] || LBUFFER="$LBUFFER$insert " @@ -66,8 +66,8 @@ sdn-navigate () { eval "exec