diff options
| author | Mathieu Ablasou <alexherbo2@gmail.com> | 2020-10-24 03:01:48 +0200 |
|---|---|---|
| committer | Mathieu Ablasou <alexherbo2@gmail.com> | 2020-10-24 03:03:53 +0200 |
| commit | 12577666359ec38c1adcb78ced570944f7da7f9a (patch) | |
| tree | 10917ecd319dbe37301624310be607414965fe40 /rc | |
| parent | 2c5209f6d5727cafa17378d490ed43627d1e5c83 (diff) | |
edit: Read stdin when a terminal is available
Fixes kak-desktop
Diffstat (limited to 'rc')
| -rwxr-xr-x | rc/connect/commands/:edit | 5 |
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 |
