From b3cc80126ad5ab6728dd90949a573f2052d5ad3c Mon Sep 17 00:00:00 2001 From: Marc Date: Sun, 18 Mar 2018 10:46:46 +0000 Subject: [PATCH] Remove unused var in racer support --- rc/extra/racer.kak | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/rc/extra/racer.kak b/rc/extra/racer.kak index 3149892e..e7f67779 100644 --- a/rc/extra/racer.kak +++ b/rc/extra/racer.kak @@ -133,10 +133,9 @@ define-command racer-show-doc -docstring "Show the documentation about the rust racer_data=$(racer --interface tab-text complete-with-snippet ${cursor} "${kak_buffile}" "${dir}/buf" | sed -n 2p ) racer_match=$(printf %s\\n "$racer_data" | cut -f1) if [ "$racer_match" = "MATCH" ]; then - racer_doc=$(printf %s\\n "$racer_data" | cut -f9 ) - remove_surrond_quotes_regex='s/^"\(.*\)"$/\1/g' - escape_at_sign_regex="s/@/\\\\@/g" - racer_doc=$(printf %s\\n "$racer_doc" | + racer_doc=$( + printf %s\\n "$racer_data" | + cut -f9 | sed -e ' # Remove leading and trailing quotes