1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-10-21 10:47:39 +00:00

Restrict variable substitutions to macros defined with the define pragma

Fixes #3333
This commit is contained in:
Jermolene
2018-06-15 08:31:02 +01:00
parent aba9c94f5a
commit 35cbb127a3
4 changed files with 13 additions and 6 deletions

View File

@@ -48,7 +48,7 @@ SetWidget.prototype.execute = function() {
this.setValue = this.getAttribute("value");
this.setEmptyValue = this.getAttribute("emptyValue");
// Set context variable
this.setVariable(this.setName,this.getValue(),this.parseTreeNode.params);
this.setVariable(this.setName,this.getValue(),this.parseTreeNode.params,!!this.parseTreeNode.isMacroDefinition);
// Construct the child widgets
this.makeChildWidgets();
};