From 1abe34f7a061932f4bf433c3e99b804588272536 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 12 Jan 2021 12:18:57 +0200 Subject: Fixed: Percent-encode spaces when copying IssueID #112 --- src/ui/sidebarwidget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/sidebarwidget.c') diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index cde95892..c31e157c 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c @@ -753,7 +753,7 @@ static iBool processEvent_SidebarWidget_(iSidebarWidget *d, const SDL_Event *ev) else if (isCommand_Widget(w, ev, "bookmark.copy")) { const iSidebarItem *item = d->contextItem; if (d->mode == bookmarks_SidebarMode && item) { - SDL_SetClipboardText(cstr_String(&item->url)); + SDL_SetClipboardText(cstr_String(withSpacesEncoded_String(&item->url))); } return iTrue; } @@ -974,7 +974,7 @@ static iBool processEvent_SidebarWidget_(iSidebarWidget *d, const SDL_Event *ev) else if (isCommand_Widget(w, ev, "history.copy")) { const iSidebarItem *item = d->contextItem; if (item && !isEmpty_String(&item->url)) { - SDL_SetClipboardText(cstr_String(&item->url)); + SDL_SetClipboardText(cstr_String(withSpacesEncoded_String(&item->url))); } return iTrue; } -- cgit v1.2.3