From 219a15d1db0907a4f1272709086932f3b0965f61 Mon Sep 17 00:00:00 2001 From: David Adam Date: Wed, 8 Jun 2022 21:44:39 +0800 Subject: [PATCH] ip completions: fix case statements for show/save/flush An errant end prevented the relevant section of the switch statement from being evaluated. Fixes #9008. Thanks to caoczy@github for the diagnosis. --- share/completions/ip.fish | 42 +++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/share/completions/ip.fish b/share/completions/ip.fish index f5e212a0c..912104418 100644 --- a/share/completions/ip.fish +++ b/share/completions/ip.fish @@ -298,27 +298,27 @@ function __fish_complete_ip end # TODO: Moar end - case show save flush # These take the same args - switch $cmd[-2] - case dev - __fish_ip_device - case scope - __fish_ip_scope - case to - # Prefix - case label - # Label-pattern - case '*' - printf '%s\t%s\n' up "Only active devices" \ - dev "Limit to a certain device" \ - scope "Limit scope" \ - to "Limit prefix" \ - label "Limit by label" \ - dynamic "(Ipv6 only) Limit to dynamic addresses" \ - permanent "(Ipv6 only) Limit to permanent addresses" - __fish_ip_device - # TODO: Moar - end + end + case show save flush # These take the same args + switch $cmd[-2] + case dev + __fish_ip_device + case scope + __fish_ip_scope + case to + # Prefix + case label + # Label-pattern + case '*' + printf '%s\t%s\n' up "Only active devices" \ + dev "Limit to a certain device" \ + scope "Limit scope" \ + to "Limit prefix" \ + label "Limit by label" \ + dynamic "(Ipv6 only) Limit to dynamic addresses" \ + permanent "(Ipv6 only) Limit to permanent addresses" + __fish_ip_device + # TODO: Moar end end end