summaryrefslogtreecommitdiff
path: root/rc/tools/python
diff options
context:
space:
mode:
authorcodesoap <codesoap@mailbox.org>2019-06-09 11:45:59 +0200
committercodesoap <codesoap@mailbox.org>2019-06-09 11:50:35 +0200
commit009eb80ca0e606babd2d9b735faa7ec7643a046e (patch)
treed455ec8e27bafa7f737bc880489fac8273c39435 /rc/tools/python
parent09e1ec97a9d7925c9d4411f4f274919aeea1bf75 (diff)
Fix tools using fifos for OpenBSD
Without these changes, kak would hang on the corresponding commands, displaying a 'waiting for shell command to finish' message.
Diffstat (limited to 'rc/tools/python')
-rw-r--r--rc/tools/python/jedi.kak4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/tools/python/jedi.kak b/rc/tools/python/jedi.kak
index 5f28ba64..05b41598 100644
--- a/rc/tools/python/jedi.kak
+++ b/rc/tools/python/jedi.kak
@@ -19,7 +19,7 @@ define-command jedi-complete -docstring "Complete the current selection" %{
evaluate-commands %sh{
dir=${kak_opt_jedi_tmp_dir}
printf %s\\n "evaluate-commands -draft %{ edit! -fifo ${dir}/fifo *jedi-output* }"
- (
+ {(
cd $(dirname ${kak_buffile})
header="${kak_cursor_line}.${kak_cursor_column}@${kak_timestamp}"
@@ -32,7 +32,7 @@ define-command jedi-complete -docstring "Complete the current selection" %{
)
printf %s\\n "evaluate-commands -client ${kak_client} %~echo completed; set-option %{buffer=${kak_buffile}} jedi_completions ${header} ${compl}~" | kak -p ${kak_session}
rm -r ${dir}
- ) > /dev/null 2>&1 < /dev/null &
+ ) & } > /dev/null 2>&1 < /dev/null
}
}