Skip to content

Commit

Permalink
Fix PDF search not highlighting the first character on a page
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtcode committed Nov 20, 2024
1 parent 4fa36f6 commit 88925ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pdf/pdf-find-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,10 @@ class PDFFindController {
total++;
}
if (total >= matchPos && start === null) {
start = i + 1;
start = i;
if (i !== 0) {
start++;
}
}
if (total >= matchPos + matchLen) {
end = i;
Expand Down

0 comments on commit 88925ed

Please sign in to comment.