completions/abbr: fix when qmark-noglob feature is not turned on

This commit is contained in:
Johannes Altmanninger 2022-12-18 09:34:41 +01:00
parent 224f81e250
commit 4b81002ab6

View File

@ -2,7 +2,7 @@
set __fish_abbr_not_add_cond '__fish_seen_subcommand_from --query --rename --erase --show --list --help'
set __fish_abbr_add_cond 'not __fish_seen_subcommand_from --query --rename --erase --show --list --help'
function __fish_abbr_add_function_cond
argparse -s h/help a/add p/position= f/function r/regex= set-cursor=? \
argparse -s h/help a/add p/position= f/function r/regex= 'set-cursor=?' \
-- (commandline -opc)[2..-1] 2>/dev/null
and test (count $argv) -eq 1
end