Fix non-constant search
commite28c6147d1164d6d823d7fb588f83fe5f35f3b2e
authorPetr Tesarik <petr@tesarici.cz>
Fri, 28 Sep 2012 22:57:58 +0000 (29 00:57 +0200)
committerPetr Tesarik <petr@tesarici.cz>
Fri, 28 Sep 2012 22:57:58 +0000 (29 00:57 +0200)
treedbdae8a0551859eb9fb06779e9f9909e834fb753
parentc513b62e74b8d34c95c748b537b0525fb7de2a7b
Fix non-constant search

If the searched string crosses a block boundary, then the match cursor
is not updated correctly, so the search term is not found.

Note that I'm not checking the return value of blockoff_next_block(),
because this function fails only if there is no next block. But that
cannot happen, since I'm checking the bounds earlier in find_expr().
libhed/file.c