funcsave: Always use local $funcdir

This abused default scope
This commit is contained in:
Fabian Boehm 2023-10-19 22:36:58 +02:00
parent dd12f55dc2
commit e494e15574

View File

@ -8,6 +8,7 @@ function funcsave --description "Save the current definition of all specified fu
return 0 return 0
end end
set -l funcdir
if set -q _flag_directory if set -q _flag_directory
set funcdir $_flag_directory set funcdir $_flag_directory
else else