Allow search_next() to reuse previous input.

  This closes #110.