aboutsummaryrefslogtreecommitdiff
path: root/environment.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-04-21 15:08:53 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-04-21 15:08:53 -0400
commitd2348f0894e9ad6a7d3110407ef0fcadf3ff8973 (patch)
tree818f1d674828fafe73300e488eea17a77cd2b9b0 /environment.c
parent3590bf34071bfdfe4d18bb8b32e4c88869bc5f7b (diff)
Fix namespace vars
Diffstat (limited to 'environment.c')
-rw-r--r--environment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/environment.c b/environment.c
index 05ca510e..ccf65e33 100644
--- a/environment.c
+++ b/environment.c
@@ -273,7 +273,7 @@ env_t *namespace_env(env_t *env, const char *namespace_name)
env_t *ns_env = new(env_t);
*ns_env = *env;
- ns_env->locals = new(table_t, .fallback=env->globals);
+ ns_env->locals = new(table_t, .fallback=env->locals);
ns_env->scope_prefix = CORD_all(env->file_prefix, namespace_name, "$");
return ns_env;
}