ulyssa / modalkit

A Rust library for building modal editing applications
Apache License 2.0
49 stars 5 forks source link

List widget should only use focus for rendering item #102

Closed ulyssa closed 1 year ago

ulyssa commented 1 year ago

I used self.focused to determine if the item is selected while rendering the List widget, which results in the viewport corner changing since it thinks it never saw the selected item. self.focused should only be used in the call to ListItem::show to indicate whether both the item and window are currently focused.