Merge branch 'master' of http://github.com/throwawayaccount12345-1/kakoune
This commit is contained in:
commit
c009067874
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user