1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-29 03:17:53 -04:00

Don't follow wrong link when an event handler changes documents under us

When a link had an onClick event handler that changes the current document,
ELinks would follow the current link of the document displayed after
executing the handler.

Factor goto_link out of goto_current_link.

Use goto_link instead of goto_current_link in activate_link to ensure that
the link that is passed in by enter() is followed.
This commit is contained in:
Miciah Dashiel Butler Masters 2008-08-02 00:04:13 +00:00
parent 20eee6f2c8
commit 6a91849889

View File

@ -951,7 +951,7 @@ call_onsubmit_and_submit(struct session *ses, struct document_view *doc_view,
return 1;
}
struct link *
static struct link *
goto_link(struct session *ses, struct document_view *doc_view, struct link *link, int do_reload)
{
struct uri *uri;