diff --git a/commands.c b/commands.c index aebedc1..89696ae 100644 --- a/commands.c +++ b/commands.c @@ -287,7 +287,7 @@ cmd_search(girara_session_t* session, const char* input, girara_argument_t* argu for (unsigned int page_id = 0; page_id < zathura->document->number_of_pages; ++page_id) { zathura_page_t* page = zathura->document->pages[page_id]; - if (page == NULL) { + if (page == NULL || page->visible == false) { continue; } diff --git a/shortcuts.c b/shortcuts.c index 4712a2b..633cf92 100644 --- a/shortcuts.c +++ b/shortcuts.c @@ -19,8 +19,6 @@ bool sc_abort(girara_session_t* session, girara_argument_t* UNUSED(argument), girara_event_t* UNUSED(event), unsigned int UNUSED(t)) { - girara_info("in sc_abort"); - g_return_val_if_fail(session != NULL, false); g_return_val_if_fail(session->global.data != NULL, false); zathura_t* zathura = session->global.data; @@ -329,8 +327,6 @@ sc_search(girara_session_t* session, girara_argument_t* argument, g_return_val_if_fail(argument != NULL, false); g_return_val_if_fail(zathura->document != NULL, false); - girara_info("in sc_search"); - return false; }