__fish_is_first_arg: only look at current process

This fixes the completions in

	btrfs command | btrfs <TAB>

See #8060
This commit is contained in:
Johannes Altmanninger 2021-06-15 03:36:31 +02:00
parent f0de75ddd9
commit 701b7450df

View File

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