summaryrefslogtreecommitdiff
path: root/src/bindings.rs
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2023-08-12 11:34:57 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2023-08-12 11:34:57 +0100
commitdb8aef62e629b1bac2c72bb2590ba4caa90aa8d9 (patch)
tree9058546eb10974f2d4a61007b5395953a54ef06e /src/bindings.rs
parent985ec2f83c9f679ff9b50c6d1e856db2502c3114 (diff)
downloadsubplot-db8aef62e629b1bac2c72bb2590ba4caa90aa8d9.tar.gz
subplot: Enable passing of location into the template expansion
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'src/bindings.rs')
-rw-r--r--src/bindings.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bindings.rs b/src/bindings.rs
index e94b64e..b629992 100644
--- a/src/bindings.rs
+++ b/src/bindings.rs
@@ -242,7 +242,7 @@ impl Binding {
let caps = self.regex.captures(step_text)?;
// If there is only one capture, it's the whole string.
- let mut m = MatchedStep::new(self, template);
+ let mut m = MatchedStep::new(self, template, step.origin().clone());
if caps.len() == 1 {
m.append_part(PartialStep::uncaptured(step_text));
return Some(m);