about summary refs log tree commit diff stats
path: root/shell/gap-buffer.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-06-18 19:54:01 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-06-18 19:54:01 -0700
commit24275c3828ce2bcda8984762c8bcfcdd0a79ef00 (patch)
tree737ae29d1c625f99376304984ea991820088c4c7 /shell/gap-buffer.mu
parentdd133c2a095228e8424a388ca575a8086ee34690 (diff)
downloadmu-24275c3828ce2bcda8984762c8bcfcdd0a79ef00.tar.gz
newlines are now a token
Diffstat (limited to 'shell/gap-buffer.mu')
-rw-r--r--shell/gap-buffer.mu4
1 files changed, 1 insertions, 3 deletions
diff --git a/shell/gap-buffer.mu b/shell/gap-buffer.mu
index 7acaeb42..0077d6fd 100644
--- a/shell/gap-buffer.mu
+++ b/shell/gap-buffer.mu
@@ -1187,7 +1187,7 @@ fn test-read-from-gap-buffer {
   check-ints-equal x, 0/nul, "F - test-read-from-gap-buffer/right-4"
 }
 
-fn skip-whitespace-from-gap-buffer self: (addr gap-buffer) {
+fn skip-spaces-from-gap-buffer self: (addr gap-buffer) {
   var done?/eax: boolean <- gap-buffer-scan-done? self
   compare done?, 0/false
   break-if-!=
@@ -1195,8 +1195,6 @@ fn skip-whitespace-from-gap-buffer self: (addr gap-buffer) {
   {
     compare g, 0x20/space
     break-if-=
-    compare g, 0xa/newline
-    break-if-=
     return
   }
   g <- read-from-gap-buffer self