summaryrefslogtreecommitdiffstats
path: root/cmd-parse.y
diff options
context:
space:
mode:
authornicm <nicm>2019-05-30 10:04:33 +0000
committernicm <nicm>2019-05-30 10:04:33 +0000
commit8fb796b5b3fbd7ff430d1b6ad2a49f97feea8f3c (patch)
treee664c716e348e3f915ee5fadecf834733887d6e8 /cmd-parse.y
parent89d2c7eb2625804060092330f22ea211c2c97ba3 (diff)
No longer need to reduce line number by one.
Diffstat (limited to 'cmd-parse.y')
-rw-r--r--cmd-parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-parse.y b/cmd-parse.y
index a623caa5..d5d12d95 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;