From 030b248a30d9bd35cc61ba621318ed4786cae3fc Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 31 Mar 2014 20:05:53 +0100 Subject: [PATCH] Remove debug commands from rc files --- rc/cpp.kak | 1 - rc/ctags.kak | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/rc/cpp.kak b/rc/cpp.kak index 4a154576..bc82e7f8 100644 --- a/rc/cpp.kak +++ b/rc/cpp.kak @@ -99,7 +99,6 @@ def alt -docstring "Jump to the alternate file (header/implementation)" %{ %sh{ done ;; esac - echo debug ${altname} if [ -f ${altname} ]; then echo edit "'${altname}'" else diff --git a/rc/ctags.kak b/rc/ctags.kak index 67c1bb26..dc7a2fcf 100644 --- a/rc/ctags.kak +++ b/rc/ctags.kak @@ -12,7 +12,7 @@ def -shell-params \ readtags ${tagname} | awk -F '\t|\n' -e ' /[^\t]+\t[^\t]+\t\/\^.*\$\// { gsub("^/\\^", "", $3); gsub("\\$/$", "", $3); gsub("(\\{|\\}).*$", "", $3); - out = out " %{" $2 " [" $3 "]} %{try %{ edit %{" $2 "}; exec %{/\\Q" $3 "vc} } catch %{ debug %{" $3 "}; echo %{unable to find tag} } }" + out = out " %{" $2 " [" $3 "]} %{try %{ edit %{" $2 "}; exec %{/\\Q" $3 "vc} } catch %{ echo %{unable to find tag} } }" } /[^\t]+\t[^\t]+\t([0-9]+)/ { out = out " %{" $2 ":" $3 "} %{edit %{" $2 "} %{" $3 "}}" } END { print length(out) == 0 ? "echo -color Error no such tag " ENVIRON["tagname"] : "menu -auto-single " out }'