In the template editor GUI, there are icons for search and replace but inside these dialogs there is no option for wrapping the search which wouldn't be too bad if the search did wrap automatically.
Either (favorized) add a checkbox to wrap the search (especially useful in replace) or make wrap the default behavior.