summaryrefslogtreecommitdiff
path: root/rc
diff options
context:
space:
mode:
authorMathieu Ablasou <alexherbo2@gmail.com>2020-10-24 03:01:48 +0200
committerMathieu Ablasou <alexherbo2@gmail.com>2020-10-24 03:03:53 +0200
commit12577666359ec38c1adcb78ced570944f7da7f9a (patch)
tree10917ecd319dbe37301624310be607414965fe40 /rc
parent2c5209f6d5727cafa17378d490ed43627d1e5c83 (diff)
edit: Read stdin when a terminal is available
Fixes kak-desktop
Diffstat (limited to 'rc')
-rwxr-xr-xrc/connect/commands/:edit5
1 files changed, 3 insertions, 2 deletions
diff --git a/rc/connect/commands/:edit b/rc/connect/commands/:edit
index 4e84b0f..949a3be 100755
--- a/rc/connect/commands/:edit
+++ b/rc/connect/commands/:edit
@@ -13,8 +13,9 @@
. "$KAKOUNE_PRELUDE"
-# Read files from stdin
-if [ ! -t 0 ]; then
+# Read files from stdin when a terminal is available.
+# Reason: kak-desktop
+if [ ! -t 0 -a -t 1 ]; then
while read file; do
set -- "$file" "$@"
done