From 546a9994167f3d6b0e0cdac22359211123a9d012 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 4 Jun 2012 14:27:56 +0000 Subject: [PATCH] global: select the tag, fail nicely --- 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 8d4a7eb4..b96ff314 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"/') + 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'/") if [[ ${params} != "" ]]; then echo "menu -auto-single $params" else