1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-29 14:44:56 +03:00

make.kak: use %rec rather than :exec hack in errjump

This commit is contained in:
Maxime Coste 2014-04-03 23:59:10 +01:00
parent 3c40ac50af
commit 80c6249afe

View File

@ -27,8 +27,7 @@ def errjump -docstring 'Jump to error location' %{
try %{ try %{
exec gll<a-?> "Entering directory" <ret> exec gll<a-?> "Entering directory" <ret>
exec s "Entering directory '([^']+)'.*\n([^:]+):(\d+):(\d+):[^\n]+\'" <ret>l exec s "Entering directory '([^']+)'.*\n([^:]+):(\d+):(\d+):[^\n]+\'" <ret>l
#edit "%reg{1}/%reg{2}" %reg{3} %reg{4} edit %rec{%reg{1}/%reg{2}} %reg{3} %reg{4}
exec :edit<space><c-r>1/<c-r>2<space><c-r>3<space><c-r>4<ret>
} catch %{ } catch %{
exec ghgl s "([^:]+):(\d+):(\d+):[^\n]+\'" <ret>l exec ghgl s "([^:]+):(\d+):(\d+):[^\n]+\'" <ret>l
edit %reg{1} %reg{2} %reg{3} edit %reg{1} %reg{2} %reg{3}