From 5b1229709df71fec4d2ac82caec6152bba87cf13 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 13 Feb 2017 13:52:51 +0000 Subject: [PATCH] Fix make.kak handling of 'Entering directory' and absolute paths Fixes #1212 --- rc/core/make.kak | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rc/core/make.kak b/rc/core/make.kak index 066854ff..0049a94e 100644 --- a/rc/core/make.kak +++ b/rc/core/make.kak @@ -45,8 +45,9 @@ decl str jumpclient def -hidden make-jump %{ eval -collapse-jumps %{ try %{ - exec gl "Entering directory" - exec s "Entering directory '([^']+)'.*\n([^:]+):(\d+):(?:(\d+):)?([^\n]+)\'" l + exec gl "Entering directory" + # Try to parse the error into capture groups, failing on absolute paths + 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}}; try %{ focus }" } catch %{