summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-25 09:13:24 +0300
committerPaul Buetow <paul@buetow.org>2026-05-25 09:13:24 +0300
commit345fda484339a75e85cb6732441e4d5311b68bf4 (patch)
tree38d564a336c9d329f7f38507a4f6b0d60c7cc0e5
parent9e4e8c9eae0849a6096133c8701a1c1105600374 (diff)
fix(completion): use __fish_use_subcommand instead of non-standard __fish_seen_command_argument
-rw-r--r--completions/gt.fish3
1 files changed, 1 insertions, 2 deletions
diff --git a/completions/gt.fish b/completions/gt.fish
index d82e1bb..2c3b911 100644
--- a/completions/gt.fish
+++ b/completions/gt.fish
@@ -13,8 +13,7 @@
# Return true when we are at the top-level (first argument after 'gt').
function __fish_gt_needs_top_level
- # Only match if we haven't seen any subcommand or flag yet
- not __fish_seen_command_argument --exclusive
+ __fish_use_subcommand
end
# Return true when the current token is part of an RPN expression (i.e. we are