__init_uvar: match previous behavior

query for any set variable, not just universals, lest someone
avoiding uvars intentionally has a problem.
This commit is contained in:
Aaron Gyes
2019-02-14 21:42:42 -08:00
parent 619a248a35
commit f10c0dde3b

View File

@@ -37,7 +37,7 @@ function __fish_config_interactive -d "Initializations that should be performed
# usage: __init_uvar VARIABLE VALUES...
function __init_uvar -d "Sets a universal variable if it's not already set"
if not set --query --universal $argv[1]
if not set --query $argv[1]
set --universal $argv
end
end