From bf7d3a4fec59cc17288fc7a673574aa66d08e0dc Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 26 Nov 2015 13:35:03 +0000 Subject: [PATCH] Cleanup WIP clang-show-completion-info --- rc/clang.kak | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rc/clang.kak b/rc/clang.kak index eb60a7ea..89bf31af 100644 --- a/rc/clang.kak +++ b/rc/clang.kak @@ -148,12 +148,12 @@ def clang-diagnostics-next -docstring "Jump to the next line that contains an er } } def -allow-override -hidden clang-show-completion-info %[ - eval -draft %[ + eval -draft %[ exec '{(b' - %sh[ + %sh[ msg=$(echo "${kak_opt_clang_completions}" | sed -e 's/\([^\\]\):/\1\n/g' ) - echo "echo -debug -- %{$msg}" - desc=$(echo "${kak_opt_clang_completions}" | sed -e 's/\([^\\]\):/\1\n/g' | grep "^${kak_selection}@" | head -n1 | sed -e 's/.*[^\\]@\(.*[^\\]\)@.*$/\1/' ) - echo "eval -client $kak_client info -anchor ${kak_cursor_line}.${kak_cursor_column} ${desc}" - ] ] + echo "echo -debug -- %{$msg}" + desc=$(echo "${kak_opt_clang_completions}" | sed -e 's/\([^\\]\):/\1\n/g' | grep "^${kak_selection}@" | head -n1 | sed -e 's/.*[^\\]@\(.*[^\\]\)@.*$/\1/' ) + echo "eval -client $kak_client info -anchor ${kak_cursor_line}.${kak_cursor_column} ${desc}" + ] ] ]