about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-07-31 19:16:03 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-07-31 19:16:03 -0700
commit118cc1ce96ef79d2ad9e0a87dab4f86d651af38c (patch)
treedbb99946f29f5e5a80b15f3e274aef98dc1ca46d
parent2cb36cd09ba464fe7e1f20e19e291f442ed9f576 (diff)
downloadmu-118cc1ce96ef79d2ad9e0a87dab4f86d651af38c.tar.gz
1911
Give up on minimizing #characters printed to screen.
-rw-r--r--edit.mu19
1 files changed, 6 insertions, 13 deletions
diff --git a/edit.mu b/edit.mu
index 54d678aa..8f77587d 100644
--- a/edit.mu
+++ b/edit.mu
@@ -2496,8 +2496,8 @@ recipe render-all [
   local-scope
   screen:address <- next-ingredient
   env:address:programming-environment-data <- next-ingredient
-  screen <- render-recipes screen, env, 1/clear-below
-  screen <- render-sandbox-side screen, env, 1/clear-below
+  screen <- render-recipes screen, env
+  screen <- render-sandbox-side screen, env
   recipes:address:editor-data <- get *env, recipes:offset
   current-sandbox:address:editor-data <- get *env, current-sandbox:offset
   sandbox-in-focus?:boolean <- get *env, sandbox-in-focus?:offset
@@ -2534,7 +2534,6 @@ recipe render-recipes [
   local-scope
   screen:address <- next-ingredient
   env:address:programming-environment-data <- next-ingredient
-  clear:boolean <- next-ingredient
   recipes:address:editor-data <- get *env, recipes:offset
   # render recipes
   left:number <- get *recipes, left:offset
@@ -2553,12 +2552,9 @@ recipe render-recipes [
   }
   # draw dotted line after recipes
   draw-horizontal screen, row, left, right, 9480/horizontal-dotted
-  # clear next line, in case we just processed a backspace
+  # clear rest of screen
   row <- add row, 1
   move-cursor screen, row, left
-  clear-line-delimited screen, left, right
-  # clear rest of screen in this column, if requested
-  reply-unless clear, screen/same-as-ingredient:0
   screen-height:number <- screen-height screen
   {
     at-bottom-of-screen?:boolean <- greater-or-equal row, screen-height
@@ -2835,7 +2831,6 @@ recipe render-sandbox-side [
   local-scope
   screen:address <- next-ingredient
   env:address:programming-environment-data <- next-ingredient
-  clear:boolean <- next-ingredient
 #?   trace [app], [render sandbox side] #? 1
   current-sandbox:address:editor-data <- get *env, current-sandbox:offset
   left:number <- get *current-sandbox, left:offset
@@ -2845,11 +2840,9 @@ recipe render-sandbox-side [
   draw-horizontal screen, row, left, right, 9473/horizontal-double
   sandbox:address:sandbox-data <- get *env, sandbox:offset
   row, screen <- render-sandboxes screen, sandbox, left, right, row
-  # clear next line, in case we just processed a backspace
+  # clear rest of screen
   row <- add row, 1
   move-cursor screen, row, left
-  clear-line-delimited screen, left, right
-  reply-unless clear, screen/same-as-ingredient:0
   screen-height:number <- screen-height screen
   {
     at-bottom-of-screen?:boolean <- greater-or-equal row, screen-height
@@ -3248,7 +3241,7 @@ after +global-touch [
     sandbox:address:sandbox-data <- extract-sandbox env, click-row
     text:address:array:character <- get *sandbox, data:offset
     current-sandbox <- insert-text current-sandbox, text
-    screen <- render-sandbox-side screen, env, 1/clear
+    screen <- render-sandbox-side screen, env
     update-cursor screen, recipes, current-sandbox, *sandbox-in-focus?
     show-screen screen
     loop +next-event:label
@@ -3363,7 +3356,7 @@ after +global-touch [
     was-delete?:boolean <- delete-sandbox *t, env
     break-unless was-delete?
 #?     trace [app], [delete clicked] #? 1
-    screen <- render-sandbox-side screen, env, 1/clear
+    screen <- render-sandbox-side screen, env
     update-cursor screen, recipes, current-sandbox, *sandbox-in-focus?
     show-screen screen
     loop +next-event:label
different levels of syntax sugar' href='/akkartik/mu/commit/apps/factorial4.subx?h=hlt&id=c83dca9cb45a7e15b28a979d0ccfce5c202859ba'>c83dca9c ^
71eb22a5 ^
c83dca9c ^



9428990b ^
c83dca9c ^


6070c23e ^
c83dca9c ^



6070c23e ^
9428990b ^



c83dca9c ^


9428990b ^
c83dca9c ^








1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89