mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08:00
__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:
parent
f0de75ddd9
commit
701b7450df
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user