Bug 329264 - "From current page" option is ignored when repeating a search using the Find toolbar.
Summary: "From current page" option is ignored when repeating a search using the Find ...
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.17.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-27 02:30 UTC by ssameer+bugs
Modified: 2014-01-16 23:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ssameer+bugs 2013-12-27 02:30:14 UTC
Open the Find toolbar on any document with Ctrl-F and search for a word. Lets say it finds the word on page 10. Now continue reading and move to page 3. Use Ctrl-F to find the next word. It will move to page 10 (or later), even if there is a word on page 4. This behaviour is not changed by selecting the "From current page" option. The same thing happens if you read ahead to page 33 and expect Find to report words from page 33 onwards.

Reproducible: Always

Steps to Reproduce:
1. Make sure Find toolbar has "From current page" selected. 
2. Search for a word -> it is found on page 10. Next word is also on page 10.
3. Continue reading to page 3 and search for the word again.
Actual Results:  
Word is found on page 10 (continuing the previous search).

Expected Results:  
Word is found on the current page (3) or later, since "From current page" is selected.
Comment 1 Albert Astals Cid 2013-12-27 12:20:46 UTC
This is if you leave the search bar open, right?
Comment 2 ssameer+bugs 2013-12-27 23:38:31 UTC
No. The behaviour is the same even if I close the Find bar with <Esc>, browse to a different page and then search on the current page by pressing <F3>,<F3> or F3,<Enter>.
Comment 3 Albert Astals Cid 2013-12-28 19:03:42 UTC
Right, you need to Esc twice to "cancel" the last search (see how the second Esc un-highlights your last search). Is that too hard? Maybe we can just add it to the manual?
Comment 4 Christoph Feck 2014-01-15 23:31:17 UTC
If you can provide the information requested in comment #3, please add it.
Comment 5 ssameer+bugs 2014-01-16 02:56:47 UTC
(In reply to comment #3)
> Right, you need to Esc twice to "cancel" the last search (see how the second
> Esc un-highlights your last search). Is that too hard? Maybe we can just add
> it to the manual?

OK, I see it now. Please consider using a single <Esc> to cancel the search (including removing the highlighting) instead of <Esc><Esc>. That would make it clearer. Thanks.
Comment 6 Albert Astals Cid 2014-01-16 23:18:18 UTC
The fact that you press Esc once to close the find bar and Esc again to clear the search term is a concious decision we took a while ago. I don't see any reason in this bug to change the behaviour.