Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastinas committed Jul 4, 2024
1 parent 0172ec0 commit 85b0935
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions zathura/zathura.c
Original file line number Diff line number Diff line change
Expand Up @@ -986,10 +986,12 @@ bool document_open(zathura_t* zathura, const char* path, const char* uri, const

/* check current page number */
/* if it wasn't specified on the command-line, get it from file_info */
if (page_number == ZATHURA_PAGE_NUMBER_UNSPECIFIED)
if (page_number == ZATHURA_PAGE_NUMBER_UNSPECIFIED) {
page_number = file_info.current_page;
if (page_number < 0)
}
if (page_number < 0) {
page_number += number_of_pages;
}
if ((unsigned)page_number > number_of_pages) {
girara_warning("document info: '%s' has an invalid page number", file_path);
zathura_document_set_current_page_number(document, 0);
Expand Down

0 comments on commit 85b0935

Please sign in to comment.