aboutsummaryrefslogtreecommitdiffstatsci
path: root/src
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-12-22 12:32:16 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-12-22 12:32:16 +0100
commit15092ce68614c7bc0acf968daf3c936f6504c42f (patch)
treeec965abcb6c6360e30d9989610e10bf1e62d1fb6 /src
parent366e3e09cd941a4bb80afcba87157764b007770c (diff)
allow one level of binding outside IML current fragment or file
Diffstat (limited to 'src')
-rw-r--r--src/Instantiator.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Instantiator.cs b/src/Instantiator.cs
index 47fcb177..c90047dc 100644
--- a/src/Instantiator.cs
+++ b/src/Instantiator.cs
@@ -406,7 +406,7 @@ namespace Crow
}
} else if (bindingExp [0] == "..") { //search starting at current node
int levelUp = bindingExp.Length - 1;
- if (levelUp > ptr)
+ if (levelUp > ptr + 1)
throw new Exception ("Binding error: try to bind outside IML source");
ptr -= levelUp;
}