You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that calling pop (or remove_items, though that's not what I'm using for my use case) does not correctly update highlighting (presumably because calling pop does not update the index).
Good catch - it looks like the index (and therefore the highlight) isn't properly accounted for when items are removed.
I'm also wondering if these ListView methods should return an AwaitComplete rather than AwaitRemove, to ensure that any re-validation of the index is done only after the items are removed?
It seems that calling
pop
(orremove_items
, though that's not what I'm using for my use case) does not correctly update highlighting (presumably because callingpop
does not update the index).A small reproduction is as follows:
Spawning a few items and trying to delete them does not set any highlighting, only manually updating the index will do that.
Textual Diagnostics
Versions
Python
Operating System
Terminal
Rich Console options
The text was updated successfully, but these errors were encountered: