Ticket #2294: mcview: incorrect starting offset for 'search again'
commite7a405f9ed1ee6f18fbf4855a67083f65be9f954
authorEgmont Koblinger <egmont@gmail.com>
Wed, 29 Jun 2011 14:49:58 +0000 (29 17:49 +0300)
committerSlava Zanko <slavazanko@gmail.com>
Tue, 19 Jul 2011 07:05:10 +0000 (19 10:05 +0300)
tree671cd0a38e9fe8cabb7dc8e4d964ca423bd06438
parent520474421bfcbeca1c09fe77e761543fab123f56
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