From 8e569179847bf0af6cce7a6306adf440883c7650 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 17 Nov 2016 13:03:43 +0000 Subject: [PATCH] ctags.kak: Fix compatibility with original-awk Fixes #928 --- 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 4f11b2ab..a2546b42 100644 --- a/rc/base/ctags.kak +++ b/rc/base/ctags.kak @@ -39,7 +39,7 @@ If no symbol is passed then the current selection is used as symbol name} \ out = out " %{" $2 " {MenuInfo}" re "} %{eval -collapse-jumps %{ try %{ edit %{" tagroot $2 "}; exec %{/\\Q" keys "vc} } catch %{ echo %{unable to find tag} } } }" } /[^\t]+\t[^\t]+\t[0-9]+/ { out = out " %{" $2 ":" $3 "} %{eval -collapse-jumps %{ edit %{" tagroot $2 "} %{" $3 "}}}" } - END { print length(out) == 0 ? "echo -color Error no such tag " ENVIRON["tagname"] : "menu -markup -auto-single " out }' + END { print ( length(out) == 0 ? "echo -color Error no such tag " ENVIRON["tagname"] : "menu -markup -auto-single " out ) }' }} def tag-complete -docstring "Insert completion candidates for the current selection into the buffer's local variables" %{ eval -draft %{