From d71aae7d3be1ae652e6bacdae8a7347d82380800 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sun, 7 Jan 2024 18:05:37 +0100 Subject: [PATCH] completions/ip: remove obsolete workaround This workaround already exists in core completion machinery. --- share/completions/ip.fish | 5 ----- 1 file changed, 5 deletions(-) diff --git a/share/completions/ip.fish b/share/completions/ip.fish index 1d03dd030..7e7ed9312 100644 --- a/share/completions/ip.fish +++ b/share/completions/ip.fish @@ -14,11 +14,6 @@ set -l ip_all_commands $ip_commands $ip_addr $ip_link $ip_neigh $ip_route function __fish_ip_commandwords set -l skip 0 set -l cmd (commandline -opc) - # HACK: Handle and/or/not specially because they have hardcoded completion behavior - # that doesn't remove them from the commandline - if contains -- $cmd[1] and or not - set -e cmd[1] - end # Remove the first word because it's "ip" or an alias for it set -e cmd[1] set -l have_command 0