summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index ee9ac973..43e499d8 100644
--- a/eval.c
+++ b/eval.c
@@ -4341,7 +4341,9 @@ val load(val target)
open_txr_file(path, &txr_lisp_p, &name, &stream);
- if (!match_str(or2(get_line(stream), lit("")), lit("#!"), nil))
+ if (match_str(or2(get_line(stream), lit("")), lit("#!"), nil))
+ parser_set_lineno(self, stream, two);
+ else
seek_stream(stream, zero, from_start_k);
uw_simple_catch_begin;