-
-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(widget)!: List should not ignore empty string items #42
Conversation
This branch needs to be rebased on the latest main branch so that newer version of Rust compiler will be used and it will fix the issue on compiling |
Rebased. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please hold this, I think I missed to see this, it can be improved. is_empty() should be done in the input string.
Updated. |
But this looks like a breaking change. Some users might be using this bug/feature as a condition, So, let's wait for a major release? |
Since crossterm was updated from 0.25 to 0.26 and MSRV was bumped from 1.56 to 1.59, the next release is already a major release (0.20.0?) if my understanding is correct. |
Ah, good point. |
Fixes issue #680. Handles the case where a list item is created with an empty string, which is not split by the lines iterator. Co-authored-by: Collin O'Connor <[email protected]> Co-authored-by: Arijit Basu <[email protected]> Co-authored-by: Arijit Basu <[email protected]>
## 🤖 New release * `ratatui-macros`: 0.3.0 -> 0.3.1 (✓ API compatible changes) <details><summary><i><b>Changelog</b></i></summary><p> <blockquote> ## [0.3.1](ratatui/ratatui-macros@v0.3.0...v0.3.1) - 2024-05-13 ### Added - Better error messages for `span!` macro ([#43](ratatui/ratatui-macros#43)) ### Fixed - downgrade ratatui to 0.26.2 ([#41](ratatui/ratatui-macros#41)) ### Other - Update authors to ratatui developers ([#44](ratatui/ratatui-macros#44)) </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/MarcoIeni/release-plz/). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Description
Fixes issue #680. Handles the case where a list item is created with an empty string, which is not split by the
lines
iterator.Testing guidelines
New test can be ran with
cargo test
Checklist