about summary refs log tree commit diff stats
path: root/baremetal
diff options
context:
space:
mode:
Diffstat (limited to 'baremetal')
-rw-r--r--baremetal/shell/line.mu10
1 files changed, 6 insertions, 4 deletions
diff --git a/baremetal/shell/line.mu b/baremetal/shell/line.mu
index a5df2af5..1b691423 100644
--- a/baremetal/shell/line.mu
+++ b/baremetal/shell/line.mu
@@ -134,7 +134,7 @@ fn render-word-with-stack-and-cursor screen: (addr screen), line: (addr line), c
   }
   var new-x/eax: int <- render-word screen, curr-word, x, y, render-cursor?
   var new-x-saved/edx: int <- copy new-x
-  add-to y, 1/word-stack-spacing
+  add-to y, 2/word-stack-spacing
   # compute stack until word
   var stack-storage: value-stack
   var stack/edi: (addr value-stack) <- address stack-storage
@@ -167,7 +167,8 @@ fn test-render-line-with-stack-singleton {
   var new-y/ecx: int <- copy 0
   new-x, new-y <- render-line-with-stack screen, line, 0/x, 0/y, 0/no-cursor
   check-screen-row screen, 0/y, "1  ", "F - test-render-line-with-stack-singleton/0"
-  check-screen-row screen, 1/y, " 1 ", "F - test-render-line-with-stack-singleton/1"
+  check-screen-row screen, 1/y, "   ", "F - test-render-line-with-stack-singleton/1"
+  check-screen-row screen, 2/y, " 1 ", "F - test-render-line-with-stack-singleton/2"
   # not bothering to test hash colors for numbers
 }
 
@@ -185,9 +186,10 @@ fn test-render-line-with-stack {
   var new-y/ecx: int <- copy 0
   new-x, new-y <- render-line-with-stack screen, line, 0/x, 0/y, 0/no-cursor
   check-screen-row screen, 0/y, "1   2 ", "F - test-render-line-with-stack/0"
+  check-screen-row screen, 1/y, "       ", "F - test-render-line-with-stack/1"
                                 #___ ___
-  check-screen-row screen, 1/y, " 1   2 ", "F - test-render-line-with-stack/1"
-  check-screen-row screen, 2/y, "     1 ", "F - test-render-line-with-stack/2"
+  check-screen-row screen, 2/y, " 1   2 ", "F - test-render-line-with-stack/2"
+  check-screen-row screen, 3/y, "     1 ", "F - test-render-line-with-stack/3"
   # not bothering to test hash colors for numbers
 }
 
r.py?h=v1.9.0b5&id=db9bb0c9026b38acdf1174f2be5851acd47e066b'>^
f027adc0 ^
5c210a96 ^

3de15ddd ^

5c210a96 ^
fb275079 ^

5c210a96 ^
3d566884 ^
a1d7ed6e ^
3d566884 ^
f8e96a97 ^
465bff73 ^





f027adc0 ^
f8e96a97 ^

0b5c4cbe ^
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