summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2023-09-17 17:46:49 +0100
committerGitHub <noreply@github.com>2023-09-17 17:46:49 +0100
commit15abf429842969e56598b1922a21693a7253f117 (patch)
tree88306230d5fb0fa8efa94c99c6ced50613e07164
parent8b815e4b39b00ef10e84fe0698f3d11cd87f7195 (diff)
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
-rw-r--r--atuin/src/shell/atuin.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/atuin/src/shell/atuin.fish b/atuin/src/shell/atuin.fish
index de90b156..344c7d19 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