From db9d679f8ea6a1265da19ae2b48284c9aaa57b74 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 10 Apr 2015 23:45:09 +0100 Subject: [PATCH] Tweak escaping in errjump --- rc/make.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/make.kak b/rc/make.kak index b2a4381e4..ef25cee1c 100644 --- a/rc/make.kak +++ b/rc/make.kak @@ -36,12 +36,12 @@ def errjump -docstring 'Jump to error location' %{ exec gll "Entering directory" exec s "Entering directory '([^']+)'.*\n([^:]+):(\d+):(?:(\d+):)?([^\n]+)\'" l set buffer _make_current_error_line %val{cursor_line} - eval -try-client %opt{jumpclient} "edit -existing %reg{1}/%reg{2} %reg{3} %reg{4}; echo -color Information '%reg{5}'" + eval -try-client %opt{jumpclient} "edit -existing %reg{1}/%reg{2} %reg{3} %reg{4}; echo -color Information %{%reg{5}}" try %{ focus %opt{jumpclient} } } catch %{ exec ghgl s "((?:\w:)?[^:]+):(\d+):(?:(\d+):)?([^\n]+)\'" l set buffer _make_current_error_line %val{cursor_line} - eval -try-client %opt{jumpclient} "edit -existing %reg{1} %reg{2} %reg{3}; echo -color Information '%reg{4}'" + eval -try-client %opt{jumpclient} "edit -existing %reg{1} %reg{2} %reg{3}; echo -color Information %{%reg{4}}" try %{ focus %opt{jumpclient} } } }