about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-06-05 10:02:44 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-06-05 10:02:44 -0700
commit99523f654ffc5d183de05c56965cef5ed0c1cb4e (patch)
tree15ba8da29aefe8d820143fe70e2e1aa856c6bae0
parent68971771376dbaf0b6661fa8be141561bca58bc4 (diff)
downloadmu-99523f654ffc5d183de05c56965cef5ed0c1cb4e.tar.gz
.
-rw-r--r--shell/gap-buffer.mu14
1 files changed, 12 insertions, 2 deletions
diff --git a/shell/gap-buffer.mu b/shell/gap-buffer.mu
index 045b1c1e..d2b5ffea 100644
--- a/shell/gap-buffer.mu
+++ b/shell/gap-buffer.mu
@@ -342,6 +342,16 @@ fn is-ascii-word-grapheme? g: grapheme -> _/eax: boolean {
     break-if-!=
     return 1/true
   }
+  compare g, 0x30/0
+  {
+    break-if->=
+    return 0/false
+  }
+  compare g, 0x39/9
+  {
+    break-if->
+    return 1/true
+  }
   compare g, 0x3f/?
   {
     break-if-!=
@@ -354,7 +364,7 @@ fn is-ascii-word-grapheme? g: grapheme -> _/eax: boolean {
   }
   compare g, 0x5a/Z
   {
-    break-if->=
+    break-if->
     return 1/true
   }
   compare g, 0x5f/_
@@ -369,7 +379,7 @@ fn is-ascii-word-grapheme? g: grapheme -> _/eax: boolean {
   }
   compare g, 0x7a/z
   {
-    break-if->=
+    break-if->
     return 1/true
   }
   return 0/false