global: quote tag pattern
This commit is contained in:
parent
399b9b6235
commit
435797e34f
|
@ -6,7 +6,7 @@ def -env-params \
|
||||||
else
|
else
|
||||||
tagname=${kak_selection}
|
tagname=${kak_selection}
|
||||||
fi
|
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
|
if [[ ${params} != "" ]]; then
|
||||||
echo "menu -auto-single $params"
|
echo "menu -auto-single $params"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user