Ticket #2091: Superfluous "Search done, Continue from begining?" dialog
commit5610bfbb6c541eb135b5baaa985f3bd74684e3c5
authorSlava Zanko <slavazanko@gmail.com>
Wed, 17 Mar 2010 09:23:55 +0000 (17 11:23 +0200)
committerSlava Zanko <slavazanko@gmail.com>
Fri, 19 Mar 2010 09:13:57 +0000 (19 11:13 +0200)
tree52124435be4784420c0cf43444ceb636320bf234
parent44fb2f37c45e46bc5ed4e2ed9741d6e1ae2e496a
Ticket #2091: Superfluous "Search done, Continue from begining?" dialog

When searching from the top of the file for something that's not there we get
"Search done, Continue from begining?" dialog before "Search string not found"
(and only if we choose "Yes" in the first one).

This should happen only if the last position>0 (either the place when search
began, or some match before).

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
src/viewer/search.c