From 15abf429842969e56598b1922a21693a7253f117 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable <ellie@elliehuxtable.com> Date: Sun, 17 Sep 2023 17:46:49 +0100 Subject: [PATCH] Fix selecting complex fish commands (#1237) This was failing for commands that spanned multiple lines, and contained a backslash. Thanks to @saulrh for suggesting the fix! I just tested and pushed it. Resolves #1211 Resolves #1232 --- atuin/src/shell/atuin.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atuin/src/shell/atuin.fish b/atuin/src/shell/atuin.fish index de90b15..344c7d1 100644 --- a/atuin/src/shell/atuin.fish +++ b/atuin/src/shell/atuin.fish @@ -18,7 +18,7 @@ function _atuin_search set h (RUST_LOG=error atuin search $argv -i -- (commandline -b) 3>&1 1>&2 2>&3) commandline -f repaint if test -n "$h" - commandline -r $h + commandline -r "$h" end end