From 247b033aaf5a7a72e26cd11a6ab676b913b67ace Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Mon, 28 Dec 2020 12:36:09 +0200 Subject: SidebarWidget: Opening feed entries in new tab --- src/ui/lookupwidget.c | 2 +- src/ui/sidebarwidget.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ui') diff --git a/src/ui/lookupwidget.c b/src/ui/lookupwidget.c index b80170d2..284d518e 100644 --- a/src/ui/lookupwidget.c +++ b/src/ui/lookupwidget.c @@ -535,7 +535,7 @@ static void presentResults_LookupWidget_(iLookupWidget *d) { cstr_String(&res->label), uiText_ColorEscape, cstr_String(&res->meta)); - const iString *cmd = feedEntryOpenCommand_String(&res->url); + const iString *cmd = feedEntryOpenCommand_String(&res->url, 0); if (cmd) { set_String(&item->command, cmd); } diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index 406ce2f2..d3be3710 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c @@ -524,7 +524,8 @@ static void itemClicked_SidebarWidget_(iSidebarWidget *d, const iSidebarItem *it break; } case feeds_SidebarMode: { - postCommandString_App(feedEntryOpenCommand_String(&item->url)); + postCommandString_App( + feedEntryOpenCommand_String(&item->url, openTabMode_Sym(SDL_GetModState()))); break; } case bookmarks_SidebarMode: -- cgit v1.2.3