Remove unused var in racer support

This commit is contained in:
Marc 2018-03-18 10:46:46 +00:00
parent 484164580e
commit b3cc80126a

View File

@ -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_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) racer_match=$(printf %s\\n "$racer_data" | cut -f1)
if [ "$racer_match" = "MATCH" ]; then if [ "$racer_match" = "MATCH" ]; then
racer_doc=$(printf %s\\n "$racer_data" | cut -f9 ) racer_doc=$(
remove_surrond_quotes_regex='s/^"\(.*\)"$/\1/g' printf %s\\n "$racer_data" |
escape_at_sign_regex="s/@/\\\\@/g" cut -f9 |
racer_doc=$(printf %s\\n "$racer_doc" |
sed -e ' sed -e '
# Remove leading and trailing quotes # Remove leading and trailing quotes