Stfl does not allow changing the focus to an empty list.
This has the unfortunate effect that changing from a text edit (like our command line) to the feedlist does not work (if all feeds are filtered out).
Instead, in that case, all keypresses end up in the (by that time) invisible command line.
This PR fixes the issue (workaround) by adding an empty item to the list.
This does create a visible change (the top row of the list will have the background color set to be the same as a focussed item)
However, I think that is not too bad and think it is better than the alternative of allowing freezes:
Some alternatives with reasons why I think they are worse:
Fix/improve STFL: It will take a long time for all distributions to take in an updated version (if ever). In addition, we want to move away from it altogether anyway.
Add item to list but hide it: Stfl only allows hiding list altogether but that breaks the layout, making the status line move towards the top of the screen
Add temporary item to list, switch foucs, then remove empty item again: Seems complex and error prone (given our current setup)
coverage: 59.819% (+0.005%) from 59.814%
when pulling 4c848becd0bc60a76ca6d340d9196a422bd20114 on dennisschagt:fix-focus-empty-list
into 9bcc073b28c373c00760a5a89712a4dafedf7c00 on newsboat:master.
Resolves https://github.com/newsboat/newsboat/issues/2763
Stfl does not allow changing the focus to an empty list. This has the unfortunate effect that changing from a text edit (like our command line) to the feedlist does not work (if all feeds are filtered out). Instead, in that case, all keypresses end up in the (by that time) invisible command line.
This PR fixes the issue (workaround) by adding an empty item to the list. This does create a visible change (the top row of the list will have the background color set to be the same as a focussed item) However, I think that is not too bad and think it is better than the alternative of allowing freezes:
Some alternatives with reasons why I think they are worse: