Change argument ordering for ‘scope_variables’

Generally we should always provide a base environment, since the scoped variables are format strings. The filtering scope selector is however optional, and we do not have one when executing commands outside an fi;e/editor context.
This commit is contained in:
Allan Odgaard
2013-05-11 19:37:18 +07:00
parent 5eaa0a9d94
commit 8b3f05485d
8 changed files with 18 additions and 16 deletions

View File

@@ -1125,7 +1125,7 @@ doScroll:
if([self.delegate respondsToSelector:@selector(variables)])
res << [self.delegate variables];
res = bundles::scope_variables([self scopeContext], res);
res = bundles::scope_variables(res, [self scopeContext]);
res = variables_for_path(document->path(), [self scopeContext].right, res);
return res;
}