Skip to content
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

Merged
merged 4 commits into from
Feb 21, 2023

Conversation

orhun
Copy link
Member

@orhun orhun commented Feb 12, 2023

Upstream: #688

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

@mindoodoo mindoodoo added the Type: Bug Something isn't working label Feb 14, 2023
@rhysd
Copy link
Contributor

rhysd commented Feb 17, 2023

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 cargo-make crate.

@orhun
Copy link
Member Author

orhun commented Feb 17, 2023

Rebased.

Copy link
Member

@sayanarijit sayanarijit left a 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.

@sayanarijit
Copy link
Member

Updated.

@sayanarijit
Copy link
Member

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?

@rhysd
Copy link
Contributor

rhysd commented Feb 17, 2023

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.

@sayanarijit
Copy link
Member

Ah, good point.

@sayanarijit sayanarijit self-requested a review February 17, 2023 16:38
@mindoodoo mindoodoo self-requested a review February 18, 2023 10:19
@mindoodoo mindoodoo changed the title Fix: List should not ignore empty string items fix: List should not ignore empty string items Feb 18, 2023
@mindoodoo mindoodoo changed the title fix: List should not ignore empty string items fix(widget)!: List should not ignore empty string items Feb 18, 2023
@mindoodoo mindoodoo added this to the First Release milestone Feb 19, 2023
@mindoodoo mindoodoo merged commit 0456abb into master Feb 21, 2023
sayanarijit added a commit that referenced this pull request Mar 3, 2023
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]>
@joshka joshka deleted the 688/master branch July 4, 2023 21:05
@kdheepak kdheepak added the Type: Breaking Change This change will cause application code to break and must be noted in the breaking changes docs etc. label Sep 9, 2023
joshka pushed a commit that referenced this pull request Feb 5, 2025
## 🤖 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Breaking Change This change will cause application code to break and must be noted in the breaking changes docs etc. Type: Bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants