Ticket #2294: mcview: incorrect starting offset for 'search again'
commitff2132b0a8c702311fff51c124bfb8b0eed61631
authorEgmont Koblinger <egmont@gmail.com>
Wed, 29 Jun 2011 14:49:58 +0000 (29 17:49 +0300)
committerSlava Zanko <slavazanko@gmail.com>
Tue, 5 Jul 2011 13:26:30 +0000 (5 16:26 +0300)
tree1c06e9918eed270025b8cb174a3de236af0030c0
parent906f6887426279ca179ef6e247d9c3a780b613b2
Ticket #2294: mcview: incorrect starting offset for 'search again'

When you press F7 in mcview to repeat the previous search, it starts again from the
file offset that is 3 bytes after the beginning of the current match. This introduces
weird and clearly buggy symptoms. Couple of examples:
If the file contains

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

and you search for a single x character, and you keep on pressing F7,
every third character gets highlighted.

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