about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--shell/trace.mu16
1 files changed, 16 insertions, 0 deletions
diff --git a/shell/trace.mu b/shell/trace.mu
index e3269088..b8e1e00d 100644
--- a/shell/trace.mu
+++ b/shell/trace.mu
@@ -690,6 +690,14 @@ fn edit-trace _self: (addr trace), key: grapheme {
     increment *cursor-y
     return
   }
+  # cursor down
+  {
+    compare key, 0x6a/j
+    break-if-!=
+    var cursor-y/eax: (addr int) <- get self, cursor-y
+    increment *cursor-y
+    return
+  }
   # cursor up
   {
     compare key, 0x15/ctrl-u
@@ -698,6 +706,14 @@ fn edit-trace _self: (addr trace), key: grapheme {
     decrement *cursor-y
     return
   }
+  # cursor up
+  {
+    compare key, 0x6b/k
+    break-if-!=
+    var cursor-y/eax: (addr int) <- get self, cursor-y
+    decrement *cursor-y
+    return
+  }
   # enter = expand
   {
     compare key, 0xa/newline