Skip to content

Deal with table.pack corner-cases properly#1603

Merged
NiLuJe merged 1 commit into
koreader:masterfrom
NiLuJe:master
Apr 23, 2023
Merged

Deal with table.pack corner-cases properly#1603
NiLuJe merged 1 commit into
koreader:masterfrom
NiLuJe:master

Conversation

@NiLuJe

@NiLuJe NiLuJe commented Apr 23, 2023

Copy link
Copy Markdown
Member

Turns out we can't rely on the len operator in all cases, as it may get confused depending on where the nils are, so always use the n field instead, as that is reliable.

Re: #1535


This change is Reviewable

Turns out we can't rely on the len operator in all cases,
as it may get confused depending on where the `nil`s are,
so always use the `n` field instead, as that *is* reliable.

Re: koreader#1535
NiLuJe added a commit to NiLuJe/koreader that referenced this pull request Apr 23, 2023
NiLuJe added a commit to NiLuJe/koreader that referenced this pull request Apr 23, 2023
@NiLuJe NiLuJe merged commit 0bb499c into koreader:master Apr 23, 2023
NiLuJe added a commit to NiLuJe/koreader that referenced this pull request Apr 23, 2023
NiLuJe added a commit to koreader/koreader that referenced this pull request Apr 23, 2023
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.

1 participant