searchall: account for broken lines

http://cygwin.com/ml/cygwin/2014-11/msg00278.html