conradludgate / wordle

Wordle TUI in Rust
122 stars 21 forks source link

Redraw whole word on backspace removing styling of invalid guess. #28

Closed afh closed 2 years ago

afh commented 2 years ago

When an invalid guess was submitted (e.g. STRUB) and the last character was removed the current remaining guess (i.e. STRU) would be still shown invalid.

This PR redraws the whole word on backspace when the current guess is 5 characters.

afh commented 2 years ago

Thank you for the review and merging this PR.