From 701b7450dfeb8bdddf91c433ff696dfe3d996b9b Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Tue, 15 Jun 2021 03:36:31 +0200 Subject: [PATCH] __fish_is_first_arg: only look at current process This fixes the completions in btrfs command | btrfs See #8060 --- share/functions/__fish_is_first_arg.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_is_first_arg.fish b/share/functions/__fish_is_first_arg.fish index 499b143ae..5eaba6dc8 100644 --- a/share/functions/__fish_is_first_arg.fish +++ b/share/functions/__fish_is_first_arg.fish @@ -1,5 +1,5 @@ # determine if this is the very first argument (regardless if switch or not) function __fish_is_first_arg - set -l tokens (commandline -co) + set -l tokens (commandline -poc) test (count $tokens) -eq 1 end