From cbdd200e7341e010ab448028d2fe0a3f0d92b92a Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 26 Jun 2024 20:35:34 +1000 Subject: [PATCH] Fix corner case in passin arguments to grep and make --- rc/tools/grep.kak | 2 +- rc/tools/make.kak | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/tools/grep.kak b/rc/tools/grep.kak index e962815f4..3847b67b2 100644 --- a/rc/tools/grep.kak +++ b/rc/tools/grep.kak @@ -28,7 +28,7 @@ define-command -params .. -docstring %{ esac fi $kak_opt_grepcmd "$@" 2>&1 | tr -d '\r' - } %arg{@} + } -- %arg{@} set-option buffer filetype grep set-option buffer jump_current_line 0 } diff --git a/rc/tools/make.kak b/rc/tools/make.kak index 5a0896b23..7f161e773 100644 --- a/rc/tools/make.kak +++ b/rc/tools/make.kak @@ -16,7 +16,7 @@ define-command -params .. -docstring %{ fifo -scroll -name *make* -script %{ trap - INT QUIT $kak_opt_makecmd "$@" - } %arg{@} # pass arguments for "$@" above, exit to avoid evaluating them + } -- %arg{@} set-option buffer filetype make set-option buffer jump_current_line 0 }