Skip to content

Commit

Permalink
Reset view index in ItemInput clear method for consistent state (#277)
Browse files Browse the repository at this point in the history
Fixes #276

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Bug Fixes**
- Resolved an issue where the visible area index was not resetting when
the input value was cleared.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
forntoh authored Dec 18, 2024
2 parents 9370ac4 + c7931ab commit 8e76a22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ItemInput.h
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ class ItemInput : public MenuItem {
*/
void clear(MenuRenderer* renderer) {
value[0] = '\0';
view = 0;
draw(renderer);
renderer->drawBlinker();
// Log
Expand Down

0 comments on commit 8e76a22

Please sign in to comment.