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:
@@ -80,7 +80,7 @@ namespace ng
|
||||
env << editor_variables(scopeAttributes) << item->bundle_variables();
|
||||
if(_document)
|
||||
env << _document->document_variables();
|
||||
env = bundles::scope_variables(this->scope(scopeAttributes), env);
|
||||
env = bundles::scope_variables(env, this->scope(scopeAttributes));
|
||||
env = variables_for_path(_document ? _document->path() : path::home(), this->scope(scopeAttributes).right, env);
|
||||
env["TM_CURRENT_WORD"] = prefix;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user