-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: variables in functions should not pollute upstream widgets
- Loading branch information
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
editions/test/tiddlers/tests/data/functions/FunctionFilterrunVariables4.tid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
title: Functions/FunctionFilterrunVariables4 | ||
description: Nested functions in filter runs that set variables should not pollute upstream widget tree | ||
type: text/vnd.tiddlywiki-multiple | ||
tags: [[$:/tags/wiki-test-spec]] | ||
|
||
title: Output | ||
|
||
\function .a() [.b[]] | ||
\function .b() [all[]] :map[subtract[1].c[]] | ||
\function .c() [all[]] :map[subtract[1].d[]] | ||
\function .d() [all[]] :map[subtract[1].e[]] | ||
\function .e() [all[]] :map[subtract[1]] | ||
|
||
|
||
<$text text={{{ [[10]] :map:flat[.a[]then<currentTiddler>] }}}/> | ||
|
||
+ | ||
title: ExpectedResult | ||
|
||
10 |