From ea53a7933e55a168a37edbaf2f46da40671e36de Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 2 Aug 2015 12:23:06 -0700 Subject: 1917 --- edit.mu | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/edit.mu b/edit.mu index 735a42fa..a11d449c 100644 --- a/edit.mu +++ b/edit.mu @@ -457,19 +457,15 @@ f] ] ] -after +render-loop-initialization [ - highlighting-state:number <- copy 0/normal -] - after +character-c-recived [ - color, highlighting-state <- get-color color, highlighting-state, c + color <- get-color color, c ] -# color:number, highlighting-state:number <- get-color color:number, highlighting-state:number, c:character +# color:number <- get-color color:number, c:character +# so far the previous color is all the information we need; that may change recipe get-color [ local-scope color:number <- next-ingredient - highlighting-state:number <- next-ingredient c:character <- next-ingredient color-is-white?:boolean <- equal color, 7/white #? $print [character: ], c, 10/newline #? 1 @@ -511,7 +507,7 @@ recipe get-color [ } # otherwise no change +exit - reply color, highlighting-state + reply color ] scenario render-colors-assignment [ -- cgit 1.4.1-2-gfad0