···163163 }
164164 read_start = 0;
165165 start += result.n;
166166- // TODO: if we get 0 byte read, copy the remaining bytes to the
167167- // beginning of the buffer and read mmore? this should only happen
168168- // if we are in the middle of a grapheme at and filled our
169169- // buffer. Probably can happen on large pastes so needs to be
170170- // implemented but low priority
171166172167 const event = result.event orelse continue;
173168 switch (event) {