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
This commit is contained in:
Ellie Huxtable 2023-09-17 17:46:49 +01:00 committed by GitHub
parent 8b815e4b39
commit 15abf42984
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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