escape pipe from closure in the description

This commit is contained in:
Martin Chaine 2017-03-06 22:30:59 +01:00
parent 58bde719e1
commit b5f6a9b227

View File

@ -22,6 +22,7 @@ def racer-complete -docstring "Complete the current selection with racer" %{
word = $2
type = $7
desc = substr($9, 2, length($9) - 2)
gsub(/\|/, "\\|", desc)
gsub(/\\n/, "\n", desc)
menu = $8
sub(/^pub /, "", menu)