From b37f8f470afa4177aa03eef4760132b36dfdf04a Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 11 Aug 2012 12:14:17 +0200 Subject: [PATCH] use new reg access syntax in rc files --- src/rc/grep.kak | 2 +- src/rc/make.kak | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}" }