aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/command.cc
diff options
context:
space:
mode:
authorBen Burdette <bburdette@protonmail.com>2022-04-29 10:02:17 -0600
committerBen Burdette <bburdette@protonmail.com>2022-04-29 10:02:17 -0600
commit2a5632c70dcb686a7764c23a5f330fcb9a33c8a1 (patch)
tree95f4d9390881356c12270f6b23a8853e6ef585f7 /src/libcmd/command.cc
parent6e19947993119dec3c9fb9581150d1184948bae9 (diff)
incorporate PosIdx changes, symbol changes.
Diffstat (limited to 'src/libcmd/command.cc')
-rw-r--r--src/libcmd/command.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcmd/command.cc b/src/libcmd/command.cc
index 82b35d16f..3e789adba 100644
--- a/src/libcmd/command.cc
+++ b/src/libcmd/command.cc
@@ -126,7 +126,7 @@ ref<EvalState> EvalCommand::getEvalState()
new DebugTraceStacker(
*evalState,
DebugTrace
- {.pos = (error->info().errPos ? *error->info().errPos : *expr.getPos()),
+ {.pos = (error->info().errPos ? *error->info().errPos : evalState->positions[expr.getPos()]),
.expr = expr,
.env = env,
.hint = error->info().msg,
@@ -139,7 +139,7 @@ ref<EvalState> EvalCommand::getEvalState()
if (expr.staticenv)
{
- std::unique_ptr<valmap> vm(mapStaticEnvBindings(*expr.staticenv.get(), env));
+ std::unique_ptr<valmap> vm(mapStaticEnvBindings(evalState->symbols, *expr.staticenv.get(), env));
runRepl(evalState, expr, *vm);
}
};