From 2d6d0582a13c8efff113837851b496e9b39e7b23 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= <p@janouch.name>
Date: Thu, 1 Oct 2020 15:24:25 +0200
Subject: README.adoc: fix zsh integration snippet

---
 README.adoc | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'README.adoc')

diff --git a/README.adoc b/README.adoc
index 5daf9ee..f49c8c0 100644
--- a/README.adoc
+++ b/README.adoc
@@ -59,7 +59,13 @@ sdn-navigate () {
     [ -z "$cd" ] || cd "$cd"
     [ -z "$insert" ] || LBUFFER="$LBUFFER$insert "
     [ -z "$helper" ] && break
+
+    # Workaround for "zsh: suspended (tty output)" when invoking
+    # helpers after the terminal has been resized while running sdn
+    command true
+
     eval "exec </dev/tty; $helper" || break
+  done
   zle reset-prompt
   # ... possibly zle-line-finish
 }
-- 
cgit v1.2.3

