From 3c29bf1ea6a16ec712792b7212d34697e3a9112c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 9 May 2018 22:32:07 +1000 Subject: [PATCH] ctags.kak: Improve shell compatibility in ctags-funcinfo --- rc/base/ctags.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/base/ctags.kak b/rc/base/ctags.kak index 0a549ebc..43392ce6 100644 --- a/rc/base/ctags.kak +++ b/rc/base/ctags.kak @@ -59,7 +59,7 @@ define-command ctags-funcinfo -docstring "Display ctags information about a sele try %{ execute-keys -no-hooks '[(;B[a-zA-Z_]+\(' %sh{ - sigs=$(readtags -e ${kak_selection%(} | grep kind:f | sed -re 's/^(\S+).*((class|struct|namespace):(\S+))?.*signature:(.*)$/\5 [\4::\1]/') + sigs=$(readtags -e ${kak_selection%?} | grep kind:f | sed -re 's/^(\S+).*((class|struct|namespace):(\S+))?.*signature:(.*)$/\5 [\4::\1]/') if [ -n "$sigs" ]; then printf %s\\n "evaluate-commands -client ${kak_client} %{info -anchor $kak_cursor_line.$kak_cursor_column -placement above '$sigs'}" fi