mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user