diff --git a/rc/base/ctags.kak b/rc/base/ctags.kak index 0a549ebc1..43392ce62 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