about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--edit/004-programming-environment.mu18
1 files changed, 2 insertions, 16 deletions
diff --git a/edit/004-programming-environment.mu b/edit/004-programming-environment.mu
index 7f624fcf..4718ca82 100644
--- a/edit/004-programming-environment.mu
+++ b/edit/004-programming-environment.mu
@@ -545,14 +545,7 @@ recipe render-string [
     column <- add column, 1
     loop
   }
-  {
-    # clear rest of current line
-    line-done?:boolean <- greater-than column, right
-    break-if line-done?
-    print-character screen, 32/space
-    column <- add column, 1
-    loop
-  }
+  clear-line-delimited screen, column, right
   reply row/same-as-ingredient:5, screen/same-as-ingredient:0
 ]
 
@@ -614,14 +607,7 @@ recipe render-code-string [
     column <- add column, 1
     loop
   }
-  {
-    # clear rest of current line
-    line-done?:boolean <- greater-than column, right
-    break-if line-done?
-    print-character screen, 32/space
-    column <- add column, 1
-    loop
-  }
+  clear-line-delimited screen, column, right
   reply row/same-as-ingredient:4, screen/same-as-ingredient:0
 ]