Skip to content

Add note on line break behavior for empty rope#114

Open
msmoiz wants to merge 1 commit into
cessen:masterfrom
msmoiz:master
Open

Add note on line break behavior for empty rope#114
msmoiz wants to merge 1 commit into
cessen:masterfrom
msmoiz:master

Conversation

@msmoiz
Copy link
Copy Markdown

@msmoiz msmoiz commented Dec 10, 2025

I tripped over the fact that an empty buffer will return a line from the lines iterator. It was a bit unexpected since it deviates from the behavior of str::lines (which returns no lines in that case). That is probably fine (and difficult to change at this point anyway), but I think a bit more documentation might be useful here, so I added it. The diff looks more involved than it actually is; all I did was add a sentence to the paragraph.

Thanks for your work on this project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant