diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-01-12 12:18:57 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-01-12 12:20:32 +0200 |
commit | 1abe34f7a061932f4bf433c3e99b804588272536 (patch) | |
tree | ef7ab6b1bc288b8487a1c5af4fa2b5c4479be0bb /src/ui/sidebarwidget.c | |
parent | 341519487778bf7d006c2c896aadde1faa3f905b (diff) |
Fixed: Percent-encode spaces when copying
IssueID #112
Diffstat (limited to 'src/ui/sidebarwidget.c')
-rw-r--r-- | src/ui/sidebarwidget.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
753 | else if (isCommand_Widget(w, ev, "bookmark.copy")) { | 753 | else if (isCommand_Widget(w, ev, "bookmark.copy")) { |
754 | const iSidebarItem *item = d->contextItem; | 754 | const iSidebarItem *item = d->contextItem; |
755 | if (d->mode == bookmarks_SidebarMode && item) { | 755 | if (d->mode == bookmarks_SidebarMode && item) { |
756 | SDL_SetClipboardText(cstr_String(&item->url)); | 756 | SDL_SetClipboardText(cstr_String(withSpacesEncoded_String(&item->url))); |
757 | } | 757 | } |
758 | return iTrue; | 758 | return iTrue; |
759 | } | 759 | } |
@@ -974,7 +974,7 @@ static iBool processEvent_SidebarWidget_(iSidebarWidget *d, const SDL_Event *ev) | |||
974 | else if (isCommand_Widget(w, ev, "history.copy")) { | 974 | else if (isCommand_Widget(w, ev, "history.copy")) { |
975 | const iSidebarItem *item = d->contextItem; | 975 | const iSidebarItem *item = d->contextItem; |
976 | if (item && !isEmpty_String(&item->url)) { | 976 | if (item && !isEmpty_String(&item->url)) { |
977 | SDL_SetClipboardText(cstr_String(&item->url)); | 977 | SDL_SetClipboardText(cstr_String(withSpacesEncoded_String(&item->url))); |
978 | } | 978 | } |
979 | return iTrue; | 979 | return iTrue; |
980 | } | 980 | } |