global: quote tag pattern

This commit is contained in:
Maxime Coste 2012-07-18 19:03:20 +02:00
parent 399b9b6235
commit 435797e34f

View File

@ -6,7 +6,7 @@ def -env-params \
else
tagname=${kak_selection}
fi
params=$(global --result grep ${tagname} | sed "s/\([^:]*\):\([0-9]*\):\(.*\)/'\1:\2 \3' 'edit \1 \2; try exec \"20k41Xs\3<ret>\" catch echo \"could not find [\3] near \1:\2\"; exec \2g'/")
params=$(global --result grep ${tagname} | sed "s/\([^:]*\):\([0-9]*\):\(.*\)/'\1:\2 \3' 'edit \1 \2; try exec \"20k41Xs\\\\Q\3<ret>\" catch echo \"could not find [\3] near \1:\2\"; exec \2g'/")
if [[ ${params} != "" ]]; then
echo "menu -auto-single $params"
else