Skip to content

0.18.1

Choose a tag to compare

@github-actions github-actions released this 01 Feb 10:56
· 38 commits to main since this release
bcf4a58

Fixed a crash that occurred when pressing Ctrl+C to cancel a menu. Previously, the render_menu function would crash with an IndexError when trying to display a cancelled menu because it attempted to access an invalid selection index.

The fix checks if the menu element was cancelled or has an invalid selection index before attempting to access the selected option, and displays "Cancelled." instead.

This also includes comprehensive test coverage for cancelled menu rendering scenarios.

This release was contributed by @patrick91 in #42