From 8dd1a785d0b38507e6329b10c07a6d83c7df8599 Mon Sep 17 00:00:00 2001 From: Mark Date: Fri, 28 Jul 2023 15:09:25 -0700 Subject: [PATCH] Fixed substitution bug --- src/parser/stage/find_subs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/stage/find_subs.rs b/src/parser/stage/find_subs.rs index 15b5d80..841ad43 100644 --- a/src/parser/stage/find_subs.rs +++ b/src/parser/stage/find_subs.rs @@ -84,7 +84,7 @@ pub fn find_subs( } else { let target = target.unwrap(); let l = t.get_mut_line_location(); - r.push_front((l.clone(), String::from(target))); + r.push_back((l.clone(), String::from(target))); let old_len = l.len; let new_len = target.chars().count();