diff --git a/rc/tools/clang.kak b/rc/tools/clang.kak index e0f90299..01ffd0e2 100644 --- a/rc/tools/clang.kak +++ b/rc/tools/clang.kak @@ -36,7 +36,7 @@ The syntaxic errors detected during parsing are shown when auto-diagnostics are # not hang while clang is running. As completions references a cursor # position and a buffer timestamp, only valid completions should be # displayed. - {( + (( case ${kak_opt_filetype} in c) ft=c ;; cpp) ft=c++ ;; @@ -100,7 +100,7 @@ The syntaxic errors detected during parsing are shown when auto-diagnostics are printf %s\\n "set-option 'buffer=${kak_buffile}' clang_flags ${kak_timestamp} ${flags} set-option 'buffer=${kak_buffile}' clang_errors ${kak_timestamp} ${errors}" | kak -p ${kak_session} - ) & } > /dev/null 2>&1 < /dev/null + ) & ) > /dev/null 2>&1 < /dev/null } } diff --git a/rc/tools/lint.kak b/rc/tools/lint.kak index d39e7d32..43751907 100644 --- a/rc/tools/lint.kak +++ b/rc/tools/lint.kak @@ -28,7 +28,7 @@ define-command lint -docstring 'Parse the current buffer with a linter' %{ hook -always -once buffer BufCloseFifo .* %{ nop %sh{ rm -r '$dir' } } }" - {{ # do the parsing in the background and when ready send to the session + ({ # do the parsing in the background and when ready send to the session eval "$kak_opt_lintcmd '$dir'/${filename}" | sort -t: -k2,2 -n > "$dir"/stderr @@ -78,7 +78,7 @@ define-command lint -docstring 'Parse the current buffer with a linter' %{ } ' > "$dir"/fifo - } & } >/dev/null 2>&1 /dev/null 2>&1 /dev/null 2>&1 < /dev/null + ) & ) > /dev/null 2>&1 < /dev/null } }