mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-13 07:33:47 +01:00
don't search on hidden pages
This commit is contained in:
parent
1c0920a190
commit
c2b9d22ad1
@ -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) {
|
for (unsigned int page_id = 0; page_id < zathura->document->number_of_pages; ++page_id) {
|
||||||
zathura_page_t* page = zathura->document->pages[page_id];
|
zathura_page_t* page = zathura->document->pages[page_id];
|
||||||
if (page == NULL) {
|
if (page == NULL || page->visible == false) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,8 +19,6 @@ bool
|
|||||||
sc_abort(girara_session_t* session, girara_argument_t* UNUSED(argument),
|
sc_abort(girara_session_t* session, girara_argument_t* UNUSED(argument),
|
||||||
girara_event_t* UNUSED(event), unsigned int UNUSED(t))
|
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 != NULL, false);
|
||||||
g_return_val_if_fail(session->global.data != NULL, false);
|
g_return_val_if_fail(session->global.data != NULL, false);
|
||||||
zathura_t* zathura = session->global.data;
|
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(argument != NULL, false);
|
||||||
g_return_val_if_fail(zathura->document != NULL, false);
|
g_return_val_if_fail(zathura->document != NULL, false);
|
||||||
|
|
||||||
girara_info("in sc_search");
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user