diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-06-09 00:13:39 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-06-09 00:13:39 -0700 |
commit | f53746f80145a184b5e4a6974175e2f92f49dcba (patch) | |
tree | 754e5463f01d12a94130724fb481d568b0792d65 /061text.mu | |
parent | bfa3f5ba3930fb3919d94e97929a2b962d104e10 (diff) | |
download | mu-f53746f80145a184b5e4a6974175e2f92f49dcba.tar.gz |
3901
Diffstat (limited to '061text.mu')
-rw-r--r-- | 061text.mu | 11 |
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 |