diff --git a/rc/grep.kak b/rc/grep.kak index 7f7cbe10..3f9ec56e 100644 --- a/rc/grep.kak +++ b/rc/grep.kak @@ -31,4 +31,5 @@ decl str jumpclient def jump %{ exec 'xs^([^:]+):(\d+):(\d+)?' eval -try-client %opt{jumpclient} edit %reg{1} %reg{2} %reg{3} + try %{ focus %opt{jumpclient} } } diff --git a/rc/make.kak b/rc/make.kak index a9727917..43219e04 100644 --- a/rc/make.kak +++ b/rc/make.kak @@ -30,8 +30,10 @@ def errjump -docstring 'Jump to error location' %{ exec gll "Entering directory" exec s "Entering directory '([^']+)'.*\n([^:]+):(\d+):(\d+):[^\n]+\'" l eval -try-client %opt{jumpclient} edit %rec{%reg{1}/%reg{2}} %reg{3} %reg{4} + try %{ focus %opt{jumpclient} } } catch %{ exec ghgl s "([^:]+):(\d+):(\d+):[^\n]+\'" l eval -try-client %opt{jumpclient} edit %reg{1} %reg{2} %reg{3} + try %{ focus %opt{jumpclient} } } }