aboutsummaryrefslogtreecommitdiffhomepage
path: root/expand.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-05-15 17:10:29 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-05-15 17:56:12 -0700
commit534fd1a59e1fc956cc15f1bdad3dc008872ed184 (patch)
tree3277f43032dbc5a7d1933cd82ea0ba0119b1c9b7 /expand.cpp
parentcec1dc20956ece1d475641fcf59e0f46a92b8917 (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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/expand.cpp b/expand.cpp
index f927f3c0..1d541a24 100644
--- a/expand.cpp
+++ b/expand.cpp
@@ -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;