diff options
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r-- | src/ui/documentwidget.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 8f2fc437..1ee83a85 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -1653,11 +1653,11 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd) | |||
1653 | } | 1653 | } |
1654 | else if (equal_Command(cmd, "document.copylink") && document_App() == d) { | 1654 | else if (equal_Command(cmd, "document.copylink") && document_App() == d) { |
1655 | if (d->contextLink) { | 1655 | if (d->contextLink) { |
1656 | SDL_SetClipboardText(cstr_String( | 1656 | SDL_SetClipboardText(cstr_String(withSpacesEncoded_String(absoluteUrl_String( |
1657 | absoluteUrl_String(d->mod.url, linkUrl_GmDocument(d->doc, d->contextLink->linkId)))); | 1657 | d->mod.url, linkUrl_GmDocument(d->doc, d->contextLink->linkId))))); |
1658 | } | 1658 | } |
1659 | else { | 1659 | else { |
1660 | SDL_SetClipboardText(cstr_String(d->mod.url)); | 1660 | SDL_SetClipboardText(cstr_String(withSpacesEncoded_String(d->mod.url))); |
1661 | } | 1661 | } |
1662 | return iTrue; | 1662 | return iTrue; |
1663 | } | 1663 | } |