ion-rust icon indicating copy to clipboard operation
ion-rust copied to clipboard

Use `next_slice` for row-column info prevention instead of `reset`

Open desaikd opened this issue 10 months ago • 0 comments

This is a follow-up issue on https://github.com/winnow-rs/winnow/discussions/742

Current approach in TextBuffer uses the reset API to preserve row and column information. Although reset is currently being used in lot of places which could lead to future issues if they change the way reset gets used.

We should rather rely on having this prevention logic in next_slice.

desaikd avatar Feb 13 '25 23:02 desaikd