about summary refs log tree commit diff stats
path: root/061text.mu
diff options
context:
space:
mode:
Diffstat (limited to '061text.mu')
-rw-r--r--061text.mu11
1 files changed, 1 insertions, 10 deletions
diff --git a/061text.mu b/061text.mu
index db198d01..913bc53a 100644
--- a/061text.mu
+++ b/061text.mu
@@ -196,16 +196,7 @@ def append buf:&:buffer:char, x:_elem -> buf:&:buffer:char [
   local-scope
   load-ingredients
   text:text <- to-text x
-  len:num <- length *text
-  i:num <- copy 0
-  {
-    done?:bool <- greater-or-equal i, len
-    break-if done?
-    c:char <- index *text, i
-    buf <- append buf, c
-    i <- add i, 1
-    loop
-  }
+  buf <- append buf, text
 ]
 
 # specialization for characters that is backspace-aware