about summary refs log tree commit diff stats
path: root/shell/gap-buffer.mu
diff options
context:
space:
mode:
Diffstat (limited to 'shell/gap-buffer.mu')
-rw-r--r--shell/gap-buffer.mu12
1 files changed, 6 insertions, 6 deletions
diff --git a/shell/gap-buffer.mu b/shell/gap-buffer.mu
index 13f66f40..64b7a9a4 100644
--- a/shell/gap-buffer.mu
+++ b/shell/gap-buffer.mu
@@ -50,16 +50,16 @@ fn gap-buffer-capacity _gap: (addr gap-buffer) -> _/ecx: int {
 }
 
 # just for tests
-fn initialize-gap-buffer-with self: (addr gap-buffer), s: (addr array byte) {
+fn initialize-gap-buffer-with self: (addr gap-buffer), keys: (addr array byte) {
   initialize-gap-buffer self, 0x40/capacity
-  var stream-storage: (stream byte 0x40/capacity)
-  var stream/ecx: (addr stream byte) <- address stream-storage
-  write stream, s
+  var input-stream-storage: (stream byte 0x40/capacity)
+  var input-stream/ecx: (addr stream byte) <- address input-stream-storage
+  write input-stream, keys
   {
-    var done?/eax: boolean <- stream-empty? stream
+    var done?/eax: boolean <- stream-empty? input-stream
     compare done?, 0/false
     break-if-!=
-    var g/eax: grapheme <- read-grapheme stream
+    var g/eax: grapheme <- read-grapheme input-stream
     add-grapheme-at-gap self, g
     loop
   }