summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index e6872a215eb..95f5d4ad5f7 100644
--- a/eval.c
+++ b/eval.c
@@ -3713,8 +3713,11 @@ eval(self, src, scope, file, line)
file = sourcefile;
line = sourceline;
}
- else if (line > 0) {
- sourceline = line;
+ else {
+ sourcefile = file;
+ if (line > 0) {
+ sourceline = line;
+ }
}
if (!NIL_P(scope)) {
if (TYPE(scope) != T_DATA || RDATA(scope)->dfree != blk_free) {