mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-14 15:58:08 +08:00
A scanner reading a mostly ASCII text front to back (slices and positioned startsWith at increasing positions) walked from the hot cursor on every read within 64 units of it, since the near-cursor walk came before the ASCII-run growth. A forward read past the run now grows the run first. When a non-ASCII character ends the run, a nearby read walks from the run's end or the cursor and starts a new run where it lands.