[occur] options fix

This commit is contained in:
Robert Krahn 2013-03-17 03:15:50 -07:00
commit 1483264033

View file

@ -80,7 +80,7 @@ oop.inherits(Occur, Search);
} }
this.matchingLines = function(session, options) { this.matchingLines = function(session, options) {
options = options || {}; options = oop.mixin({}, options);
if (!session || !options.needle) return []; if (!session || !options.needle) return [];
var search = new Search(); var search = new Search();
search.set(options); search.set(options);