hazelgrove / tylr

a tiny tile-based editor
https://tylr.fun
MIT License
284 stars 2 forks source link

range of behaviors when adding char after expanded kw eg. "let| x = 5 in" #59

Open disconcision opened 2 days ago

disconcision commented 2 days ago
Screenshot 2024-11-05 at 5 07 39 PM

so the simple case is fine. inserting another "t" above just results in "lett" and no ghosts.

but given this:

Screenshot 2024-11-05 at 5 07 49 PM

entering another "t" crashes:

Screenshot 2024-11-05 at 5 08 02 PM

and given:

Screenshot 2024-11-05 at 5 08 26 PM

inserting "t" results in:

Screenshot 2024-11-05 at 5 08 34 PM
dm0n3y commented 1 day ago

above commit fixes crash but not the lettin issue