diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2015-05-15 17:10:29 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2015-05-15 17:56:12 -0700 |
commit | 534fd1a59e1fc956cc15f1bdad3dc008872ed184 (patch) | |
tree | 3277f43032dbc5a7d1933cd82ea0ba0119b1c9b7 /expand.cpp | |
parent | cec1dc20956ece1d475641fcf59e0f46a92b8917 (diff) |
Pass the character index, not the character, to parse_util_expand_variable_error
Fixes #2067
Diffstat (limited to 'expand.cpp')
-rw-r--r-- | expand.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1034,7 +1034,7 @@ static int expand_variables(parser_t &parser, const wcstring &instr, std::vector { if (errors) { - parse_util_expand_variable_error(instr, 0 /* global_token_pos */, c, errors); + parse_util_expand_variable_error(instr, 0 /* global_token_pos */, i, errors); } is_ok = false; |