Weird search cycle behaviour
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Problem
Cycling search results only works backwards and when cycling backwards the highlighting disappears after the last result.
### Steps to reproduce
Enter `/foo` in a document with `m > 0` search results. Navigate forwards to the `m`-th search result. Type `n` once again and the green box of the last result disappears. All search results now have the yellow background and moving forwards is no longer possible.
Move backwards now, the green box reappears. Navigate to the first result and `N` once again, the box disappears. `N` another time, and it cycles backwards.
The same behaviour occurs when searching backwards via `?foo` with the roles of `N` and `n` switched.
### Expected behavior
I expect the green box to not disappear. Cycling should be possible in both directions or disabled completey.
### zathura version (zathura --version)
2026.02.22
### girara version (zathura --version)
2026.02.04
### zathura backend
pdf-mupdf (2026.2.3)
2 条评论