about summary refs log tree commit diff stats
path: root/shell/trace.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-06-02 23:36:34 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-06-02 23:36:34 -0700
commit60872b2b778f44aa337b31695aa83821b6d02962 (patch)
treecca015e85b5cd235aeabd640ce132810e0fcb2a8 /shell/trace.mu
parent35336a5f64a857d8ff19de4767fe788cd1a8f8d9 (diff)
downloadmu-60872b2b778f44aa337b31695aa83821b6d02962.tar.gz
.
Diffstat (limited to 'shell/trace.mu')
-rw-r--r--shell/trace.mu4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/trace.mu b/shell/trace.mu
index 490b0ade..44e6a389 100644
--- a/shell/trace.mu
+++ b/shell/trace.mu
@@ -983,11 +983,11 @@ fn expand _self: (addr trace) {
   var cursor-line-visible?/eax: (addr boolean) <- get cursor-line, visible?
   var cursor-line-depth/ebx: (addr int) <- get cursor-line, depth
   var target-depth/ebx: int <- copy *cursor-line-depth
-  # if cursor-line is already visible, increment target-depth
+  # if cursor-line is already visible, do nothing
   compare *cursor-line-visible?, 0/false
   {
     break-if-=
-    target-depth <- increment
+    return
   }
   # reveal the run of lines starting at cursor-line-index with depth target-depth
   var i/ecx: int <- copy cursor-line-index