From 435797e34f7b71b77feb63142441af15c8b548d5 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 18 Jul 2012 19:03:20 +0200 Subject: [PATCH] global: quote tag pattern --- src/rc/global.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rc/global.kak b/src/rc/global.kak index b96ff314..4f8da202 100644 --- a/src/rc/global.kak +++ b/src/rc/global.kak @@ -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\" 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\" catch echo \"could not find [\3] near \1:\2\"; exec \2g'/") if [[ ${params} != "" ]]; then echo "menu -auto-single $params" else