From 009eb80ca0e606babd2d9b735faa7ec7643a046e Mon Sep 17 00:00:00 2001 From: codesoap Date: Sun, 9 Jun 2019 11:45:59 +0200 Subject: 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. --- rc/tools/python/jedi.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rc/tools/python') 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 } } -- cgit v1.2.3