-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
SumatraPDF version
- v3.6.17065 64bit
Describe the bug
A common workflow is to select text in a document, then press Ctrl+F to search for occurrences of the search text. Then, subsequent inputs of Ctrl+F should enumerate subsequent occurrences. Sometimes this works, but often it doesn't, either refusing to search, or searching for a stale search string. Using F3 after Ctrl+F functions as expected, but Shift+F3 has issues as well, performing a forward search if no F3 has been issued before.
Reproduction and expectation
There's multiple broken behaviours, but I expect that all of these have a common or related cause. I'll make one sequence that illustrates all of them.
- Open the application, and a document.
- Select any common word with the cursor. Pick a common word like
the, and do not select the first occurrence on the page. - Press
Ctrl+F. - Expectation: Search bar fills with selected text, and selection jumps to the next occurrence of the search string.
- Actual behaviour: Search bar fills with selected text, and selection jumps to the first occurrence of the search string on the page.
- Repeat
Ctrl+Finputs a few times. - (Expected) The selection continues to iterate through occurrences of the search string.
- Press
Shift+F3. - Expectation: selection jumps to the previous occurrence of the search string.
- Actual behaviour: selection jumps to the next occurrence instead.
- Press
F3(any number of times). - (Expected) The selection jumps forward through occurrences of the search string.
- Press
Shift+F3(any number of times). - (Expected) The selection jumps backward through occurrences of the search string.
- Select a different common word with the cursor.
- Press
Ctrl+F. - Expectation: Search bar fills with selected text, and selection jumps to the next occurrence of the NEW search string.
- Actual behaviour: Search bar fills with selected text, and selection jumps to the next occurrence of the OLD search string.
- Repeat
Ctrl+Finput. - Expectation: ???
- Actual behaviour: Search bar fills with selected (OLD) text, and selection jumps to the next occurrence of the OLD search string.
- Open a different file in a new tab.
- Select an uncommon word with the cursor.
- Press
Ctrl+Fa few times. - Expectation: Search bar fills with selected text, and selection jumps forward through occurrences of the search string, looping at the last occurrence.
- Actual behaviour: As expected, but stops accepting input after the last occurrence, not looping.
File that reproduces the problem
This is common across any PDF I've tried.
Screenshots
n/a
Additional context
n/a