From b85b603a999e4664f43fc9380b3abad5497bc077 Mon Sep 17 00:00:00 2001 From: WindSoilder Date: Wed, 5 Apr 2023 16:42:14 +0800 Subject: [PATCH] update `str substring` usage to use range parameter (#840) --- src/shell/atuin.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell/atuin.nu b/src/shell/atuin.nu index c251f6b3..d76cba91 100644 --- a/src/shell/atuin.nu +++ b/src/shell/atuin.nu @@ -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" }