update str substring usage to use range parameter (#840)

This commit is contained in:
WindSoilder 2023-04-05 16:42:14 +08:00 committed by GitHub
parent 188117dfae
commit b85b603a99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,7 @@ def _atuin_search_cmd [...flags: string] {
([
`commandline (RUST_LOG=error run-external --redirect-stderr atuin search`,
($flags | append [--interactive, --] | each {|e| $'"($e)"'}),
`(commandline) | complete | $in.stderr | str substring ',-1')`,
`(commandline) | complete | $in.stderr | str substring ..-1)`,
] | flatten | str join ' '),
] | str join "\n"
}