cessen / ropey

A utf8 text rope for manipulating and editing large texts.
MIT License
1.04k stars 46 forks source link

RopeBuilder's Default derive creates an invalid RopeBuilder #74

Closed kirawi closed 1 year ago

kirawi commented 1 year ago

I noticed this in https://github.com/helix-editor/helix/pull/4983. It looks like the cause is that the stack is not initialized with a single starting node.

cessen commented 1 year ago

Thanks for the report! And yup, that was exactly the problem. Fixed in dfcac8b19ee571a2a399e189c12b2a10663ce464.