completions/set: fix completion of locales

4b018a760 (set completions: add more special variables, fix colors, 2021-12-13)
changed a global variable to a local, which is no longer visible to this
function. Fix this, so "set LANG <TAB>" works again.
This commit is contained in:
Johannes Altmanninger 2022-02-07 19:02:46 +01:00
parent 13edce3671
commit 1a0fed2800

View File

@ -2,12 +2,6 @@
# Completions for the 'set' builtin
#
#
# All locale variables used by set completions
#
set -l __fish_locale_vars LANG LC_ALL LC_COLLATE LC_CTYPE LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME
#
# Various helper functions
#
@ -36,7 +30,7 @@ function __fish_set_is_locale -d 'Test if We are specifying a locale value for t
for i in $cmd
switch $i
case $__fish_locale_vars
case LANG LC_ALL LC_COLLATE LC_CTYPE LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME
return 0
case '-*'