retronews

a featureful fork of the luke8086/retronews hn+lobste.rs tui
Log | Files | Refs | README | LICENSE

commit b3b9fdc5d07a868c790f3c40ab3fcedc0673375e
parent 28b64bf3d02cd4bd55b4556c6d924a21032f12fa
Author: quantumish <freifeld.david@gmail.com>
Date:   Thu, 16 Jul 2026 14:18:05 +0100

Use proper set insertion function

set.add, not set.insert
Diffstat:
Mretronews.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/retronews.py b/retronews.py @@ -1404,7 +1404,7 @@ def app_show_links_screen(app: AppState) -> None: urls = set(URL_REX.findall(" ".join(lines[1:]))) if app.selected_message is not None and app.selected_message.url is not None: - urls.insert(app.selected_message.url) + urls.add(app.selected_message.url) if len(urls) == 0: return app_show_flash(app, f"No links available for opening {app.selected_message.url}")