This commit is contained in:
Maxime Coste 2021-07-12 10:15:14 +10:00
commit c009067874

View File

@ -209,11 +209,11 @@ define-command \
# A fifo to send the results back to a Kakoune buffer. # A fifo to send the results back to a Kakoune buffer.
mkfifo "$dir"/fifo mkfifo "$dir"/fifo
printf 'lint-open-output-buffer %s' "$(kakquote "$dir")" | kak -p "$kak_session" # Send the results to kakoune if the session is still valid.
if printf 'lint-open-output-buffer %s' "$(kakquote "$dir")" | kak -p "$kak_session"; then
# We are done here. Send the results to Kakoune, cat "$dir"/result > "$dir"/fifo
# and clean up. fi
cat "$dir"/result > "$dir"/fifo # Clean up.
rm -rf "$dir" rm -rf "$dir"
} & ) >"$dir"/stderr 2>&1 </dev/null } & ) >"$dir"/stderr 2>&1 </dev/null