lib/sup/modes/search-results-mode.rb in sup-0.0.2 vs lib/sup/modes/search-results-mode.rb in sup-0.0.3
- old
+ new
@@ -3,20 +3,19 @@
class SearchResultsMode < ThreadIndexMode
register_keymap do |k|
k.add :load_more_threads, "Load #{LOAD_MORE_THREAD_NUM} more threads", 'M'
end
- def initialize content
- raise ArgumentError, "no content" if content =~ /^\s*$/
- @content = content.gsub(/[\(\)]/) { |x| "\\" + x }
+ def initialize qobj
+ @qobj = qobj
super
end
## TODO: think about this
def is_relevant? m; super; end
def load_more_threads n=ThreadIndexMode::LOAD_MORE_THREAD_NUM
- load_n_threads_background n, :content => @content,
+ load_n_threads_background n, :qobj => @qobj,
:load_killed => true,
:load_spam => false,
:when_done =>(lambda do |num|
if num > 0
BufferManager.flash "Found #{num} threads"