petereon / beaupy

A Python library of interactive CLI elements you have been looking for
https://petereon.github.io/beaupy/
MIT License
200 stars 13 forks source link

Fixed ternary issue with select_all keybind #90

Closed xxJava closed 6 months ago

xxJava commented 6 months ago

The ternary was not properly being interpreted by Python due to a lack of parenthesis around the ternary statement, causing the select_all keybind to always deselect regardless of the length of state.selected_indexes

petereon commented 6 months ago

Nice catch, thanks for the PR! I'll merge and release later today.