qutebrowser / qutebrowser

A keyboard-driven, vim-like browser based on Python and Qt.
https://www.qutebrowser.org/
GNU General Public License v3.0
9.45k stars 1.01k forks source link

Handle no selectionmodel on clear selection #8200

Closed toofar closed 1 month ago

toofar commented 1 month ago

I didn't put much effort into reproducing it beyond manually hammering the completion in a temp basedir (possibly if the completion was slower because of more items it would be easier to reproduce). That commit history was pretty clear, we've always handled this situation (whatever it is) until adapting to type hints recently. An alternate implementation is adding an allow_none or similar kwarg to our getter.

Fixes: https://github.com/qutebrowser/qutebrowser/issues/7901