mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-28 06:08:05 +03:00
Fix make.kak handling of 'Entering directory' and absolute paths
Fixes #1212
This commit is contained in:
parent
2edb7d62ef
commit
5b1229709d
@ -45,8 +45,9 @@ decl str jumpclient
|
|||||||
def -hidden make-jump %{
|
def -hidden make-jump %{
|
||||||
eval -collapse-jumps %{
|
eval -collapse-jumps %{
|
||||||
try %{
|
try %{
|
||||||
exec gl<a-?> "Entering directory" <ret>
|
exec gl<a-?> "Entering directory" <ret><a-:>
|
||||||
exec s "Entering directory '([^']+)'.*\n([^:]+):(\d+):(?:(\d+):)?([^\n]+)\'" <ret>l
|
# Try to parse the error into capture groups, failing on absolute paths
|
||||||
|
exec s "Entering directory '([^']+)'.*\n([^:/][^:]*):(\d+):(?:(\d+):)?([^\n]+)\'" <ret>l
|
||||||
set buffer make_current_error_line %val{cursor_line}
|
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 }"
|
eval -try-client %opt{jumpclient} "edit -existing %reg{1}/%reg{2} %reg{3} %reg{4}; echo -color Information %{%reg{5}}; try %{ focus }"
|
||||||
} catch %{
|
} catch %{
|
||||||
|
Loading…
Reference in New Issue
Block a user