mirror of
https://github.com/textmate/textmate.git
synced 2026-01-14 17:28:05 -05:00
Fix missing variables for windowless commands
This commit is contained in:
@@ -247,9 +247,9 @@ void run (bundle_command_t const& command, ng::buffer_t const& buffer, ng::range
|
||||
if(document && document->is_open())
|
||||
baseEnv = ng::editor_for_document(document)->variables(baseEnv, to_s([controller scopeAttributes]));
|
||||
else if(document)
|
||||
baseEnv = document->variables(baseEnv);
|
||||
baseEnv = bundles::environment(document->file_type(), document->variables(baseEnv));
|
||||
else
|
||||
baseEnv = variables_for_path(NULL_STR, "", baseEnv);
|
||||
baseEnv = bundles::environment(scope::scope_t(), variables_for_path(NULL_STR, "", baseEnv));
|
||||
|
||||
if(controller)
|
||||
[controller updateVariables:baseEnv];
|
||||
|
||||
Reference in New Issue
Block a user