From d4fb75e9f35ff900d808f64a1ddd674bac85e1c2 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Thu, 3 Aug 2017 23:52:07 -0700 Subject: [PATCH] fix bug in `abbr` function I introduced a bug in the `abbr` function with commit 17dff8c by referencing the undefined `$cmd` variable. This fixes that. --- share/functions/abbr.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/abbr.fish b/share/functions/abbr.fish index 65ed16914..508965fd6 100644 --- a/share/functions/abbr.fish +++ b/share/functions/abbr.fish @@ -3,7 +3,7 @@ function abbr --description "Manage abbreviations using new fish 3.0 scheme." set options $options 'h/help' 'a/add' 'r/rename' 'e/erase' 'l/list' 's/show' set options $options 'g/global' 'U/universal' - argparse -n $cmd $options -- $argv + argparse -n abbr $options -- $argv or return if set -q _flag_help