editor: allow previous match to wrap around the end of the buffer.