1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-02 03:46:21 -04:00

do_action(): Simplify checking of link requisition by testing link != NULL

This commit is contained in:
Jonas Fonseca 2005-12-26 00:40:04 +01:00 committed by Jonas Fonseca
parent 1c3f6a8f3b
commit 452f31d773

View File

@ -88,7 +88,7 @@ do_action(struct session *ses, enum main_action action_id, int verbose)
return FRAME_EVENT_OK;
if (action_requires_link(KEYMAP_MAIN, action_id)
&& (!doc_view || !doc_view->vs || doc_view->vs->current_link == -1))
&& !link)
goto ignore_action;
if (!action_is_anonymous_safe(KEYMAP_MAIN, action_id)