summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-11-26 13:35:03 +0000
committerMaxime Coste <frrrwww@gmail.com>2015-11-26 13:35:03 +0000
commitbf7d3a4fec59cc17288fc7a673574aa66d08e0dc (patch)
tree2feb0742e439ac3d9c3c3697da8c23b6d224c4f8
parent9e08cf8ea4d10aa13b90ef05a80367d0165bffe3 (diff)
Cleanup WIP clang-show-completion-info
-rw-r--r--rc/clang.kak12
1 files 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}"
+ ] ]
]