mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
do_action(): Simplify checking of link requisition by testing link != NULL
This commit is contained in:
parent
1c3f6a8f3b
commit
452f31d773
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user