diff --git a/src/rc/grep.kak b/src/rc/grep.kak index eaa270c9..621069be 100644 --- a/src/rc/grep.kak +++ b/src/rc/grep.kak @@ -16,4 +16,4 @@ hook global WinSetOption filetype=grep %{ hook global WinSetOption filetype=(?!grep).* %{ rmhl grep-highlight; } -def gjump %{ exec 'xs^([^:]+):(\d+)'; edit %sh{ echo ${kak_reg_1} ${kak_reg_2} } } +def gjump %{ exec 'xs^([^:]+):(\d+)'; edit %reg{1} %reg{2} } diff --git a/src/rc/make.kak b/src/rc/make.kak index 6f7914f3..0dbc585b 100644 --- a/src/rc/make.kak +++ b/src/rc/make.kak @@ -16,4 +16,4 @@ hook global WinSetOption filetype=make %{ hook global WinSetOption filetype=(?!make).* %{ rmhl make-highlight; } -def errjump %{ exec 'xs^([^:]+):(\d+)(?::(\d+))?:([^\n]+)\n'; %sh{ echo "edit ${kak_reg_1} ${kak_reg_2} ${kak_reg_3}; echo %{ ${kak_reg_4} }" } } +def errjump %{ exec 'xs^([^:]+):(\d+)(?::(\d+))?:([^\n]+)\n'; edit %reg{1} %reg{2} %reg{3}; echo %reg{4}" }