summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm>2019-05-30 10:04:33 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2019-05-30 13:12:35 +0100
commite4eec92852754996d8c2a3fae361deb6639f3c4b (patch)
treee4242ffc1907e9accb9ed8e6a63473fff0f7c48b
parent75d112c4842295daa6542064aede617b774e3ff7 (diff)
No longer need to reduce line number by one.
-rw-r--r--cmd-parse.y4
1 files 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;