From 0e5bf7131319047325a5cb038e7546c9185de67e Mon Sep 17 00:00:00 2001 From: Gerrit Viljoen Date: Sun, 17 May 2020 11:55:28 +0200 Subject: [PATCH] save game --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index e157d74..a122d67 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -405,7 +405,7 @@ impl SmartString { .map(|(_, string)| string) .next(); if let Some(fragment) = first_fragment { - fragment.push(ch); + fragment.insert(0, ch); } else { self.fragments.insert(0, (true, ch.to_string())); }