pwmt / zathura

Document viewer
https://pwmt.org/projects/zathura
zlib License
1.88k stars 129 forks source link

Search wrap broken for specific document #376

Open sebastinas opened 1 year ago

sebastinas commented 1 year ago

On GitLab by @mjrob on Feb 3, 2023, 04:00


Search wrap is not working for one of my documents. That is, I search for something in the document by pressing /, then I press n until I get to the last result. After I get to the last result, no matter how many times I press n, I can't get back to the top. I can't even press N to go to the previous result. Moving to the top of the document and pressing n doesn't bring me to any result either. It's like the search was cleared.

Search wrap works as expected for other documents.

I am using zathura 0.4.9.

Here is the problematic PDF: https://www.waveshare.com/w/upload/f/f6/E-Paper-IT8951-Driver-HAT-Schematic.pdf. The word I am searching for is vusb5.

sebastinas commented 1 year ago

On GitLab by @valoq on Feb 3, 2023, 12:11


The issue is reproducible with zathura 0.5.2 and both zathura-pdf-mupdf 0.4.0 and zathura-pdf-poppler 0.3.1

When searching the document for the string usb it works as expected but if the string ends with a number like usb5 or b5, the issue described above is triggered, though I can still use N for reversed search.

Other documents I tested did not seem to be affected.