Don't "loop"-search, i.e. it wraps around to the beginning/end when "search next" or "search previous" reachs beginning or end of file.