after rest do ... end, reset @line.
Change name PatchTarget#search to PatchTarget#seek.