mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08:00
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:
parent
13edce3671
commit
1a0fed2800
|
@ -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 '-*'
|
||||
|
|
Loading…
Reference in New Issue
Block a user