From e4eec92852754996d8c2a3fae361deb6639f3c4b Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 30 May 2019 10:04:33 +0000 Subject: [PATCH] No longer need to reduce line number by one. --- cmd-parse.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd-parse.y b/cmd-parse.y index d984b9d3..113e6a92 100644 --- a/cmd-parse.y +++ b/cmd-parse.y @@ -361,7 +361,7 @@ command : assignment TOKEN $$ = xcalloc(1, sizeof *$$); $$->name = $2; - $$->line = ps->input->line - 1; + $$->line = ps->input->line; } | assignment TOKEN arguments @@ -370,7 +370,7 @@ command : assignment TOKEN $$ = xcalloc(1, sizeof *$$); $$->name = $2; - $$->line = ps->input->line - 1; + $$->line = ps->input->line; $$->argc = $3.argc; $$->argv = $3.argv;