Skip to content

ReaderHandMade: fix handmade hidden flow starting from page 1#14502

Merged
hius07 merged 1 commit into
koreader:masterfrom
hius07:fix-handmade-goto
Oct 28, 2025
Merged

ReaderHandMade: fix handmade hidden flow starting from page 1#14502
hius07 merged 1 commit into
koreader:masterfrom
hius07:fix-handmade-goto

Conversation

@hius07

@hius07 hius07 commented Oct 25, 2025

Copy link
Copy Markdown
Member

@Frenzie Frenzie added this to the 2025.10 milestone Oct 25, 2025
local last_linear_page = nb_pages
if #flows > 0 then
local flow = flows[1]
if flow[1] == 1 then -- book first page is in a hidden flow

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn’t this be: “the book’s first page is in a hidden flow”?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might also have written it like this in native american's English :) but if this reads better, why not.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn’t this be: “the book’s first page is in a hidden flow”?

It should probably be "the first page of the book," if you're nitpicking. ;-)

But instead I'd just drop the "book."

(No need; I'm not nitpicking here.)

@poire-z poire-z left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No longer familiar with my code about fist/last_linear_page , and hard to grasp.
You code reads fine and simpler, so I guess it's ok. Anyway, trusting you.

@hius07 hius07 merged commit 69f9e06 into koreader:master Oct 28, 2025
4 checks passed
@hius07 hius07 deleted the fix-handmade-goto branch October 28, 2025 06:27
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Go to page" only supports absolute page numbers

4 participants