From 2dcfcab653ae69ae95ab57217fe64c97ae05d8de Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Mon, 1 Aug 2022 21:41:04 -0600 Subject: [PATCH] Fix invalid range in node segment Fixes #326 --- functions/fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index 331bc5b..898046e 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -897,7 +897,7 @@ end function __bobthefish_prompt_find_file_up -S -d 'Find file(s), going up the parent directories' set -l dir "$argv[1]" - set -l files $argv[2..] + set -l files $argv[2..-1] if test -z "$dir" or test -z "$files"