summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-12 21:24:54 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-12 21:24:54 +0200
commitda62f092258e313bbd28745a6e32e6d8117f4aa3 (patch)
tree81e8e40128aa8adaaa37ebc3af59f6fcbf776b4e /src/ui/documentwidget.c
parent6410ed3c412ad9a9b688f40e981a70da03c8baca (diff)
DocumentWidget: Bookmarking a wrapped link
Only the clicked part of the label text was used for the bookmark.
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r--src/ui/documentwidget.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index b0107a75..5d3aa3ba 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -2449,7 +2449,8 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e
2449 format_CStr("!open noproxy:1 url:%s", cstr_String(linkUrl)) } }, 2449 format_CStr("!open noproxy:1 url:%s", cstr_String(linkUrl)) } },
2450 2); 2450 2);
2451 } 2451 }
2452 iString *linkLabel = collect_String(newRange_String(d->contextLink->text)); 2452 iString *linkLabel = collectNewRange_String(
2453 linkLabel_GmDocument(d->doc, d->contextLink->linkId));
2453 urlEncodeSpaces_String(linkLabel); 2454 urlEncodeSpaces_String(linkLabel);
2454 pushBackN_Array(&items, 2455 pushBackN_Array(&items,
2455 (iMenuItem[]){ { "---", 0, 0, NULL }, 2456 (iMenuItem[]){ { "---", 0, 0, NULL },