about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-05-30 23:30:59 -0700
committerKartik Agaram <vc@akkartik.com>2020-05-30 23:31:16 -0700
commit7134bfa24fdbd9fe9e2a57d91941052797ddd6c7 (patch)
tree15c083e9f1f2763c1823e2a00d526e7daeab5f91
parentf817386bb310d801c7795c0d6f56721456bb1cc0 (diff)
downloadmu-7134bfa24fdbd9fe9e2a57d91941052797ddd6c7.tar.gz
6451
Now the trailing asterisk or underscore renders correctly, for starters.
-rw-r--r--apps/browse.mu8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/browse.mu b/apps/browse.mu
index c71d1dec..62079194 100644
--- a/apps/browse.mu
+++ b/apps/browse.mu
@@ -104,20 +104,24 @@ $update-attributes:check-state: {
           compare c, 0x2a  # '*'
           {
             break-if-!=
+            print-byte c
+            col <- increment
             # r->current-state == 1 && c == '*'
             reset-formatting
             start-color 0xec, 7  # 236 = darkish gray
             copy-to *state, 0
-            break $update-attributes:check-state
+            loop $char-loop
           }
           compare c, 0x5f  # '_'
           {
             break-if-!=
+            print-byte c
+            col <- increment
             # r->current-state == 1 && c == '_'
             reset-formatting
             start-color 0xec, 7  # 236 = darkish gray
             copy-to *state, 0
-            break $update-attributes:check-state
+            loop $char-loop
           }
           break $update-attributes:check-state
         }