From: William Morgan Date: Sun, 3 Feb 2008 01:02:30 +0000 (-0800) Subject: Merge branch 'cancel-search' into next X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=99ac344d15f5f4fc0e1c50bf2a6206a019571ca8;p=sup Merge branch 'cancel-search' into next --- 99ac344d15f5f4fc0e1c50bf2a6206a019571ca8 diff --cc lib/sup/modes/thread-index-mode.rb index bc240e9,73abe95..629f8df --- a/lib/sup/modes/thread-index-mode.rb +++ b/lib/sup/modes/thread-index-mode.rb @@@ -465,14 -462,11 +465,14 @@@ EO @interrupt_search = false @mbid = BufferManager.say "Searching for threads..." + ts_to_load = n + ts_to_load = ts_to_load + @ts.size unless n == -1 # -1 means all threads + orig_size = @ts.size last_update = Time.now - @ts.load_n_threads(@ts.size + n, opts) do |i| + @ts.load_n_threads(ts_to_load, opts) do |i| if (Time.now - last_update) >= 0.25 - BufferManager.say "Loaded #{i.pluralize 'thread'} (use ^G to cancel)...", @mbid + BufferManager.say "Loaded #{i.pluralize 'thread'}...", @mbid update BufferManager.draw_screen last_update = Time.now