## a little tricky because we can't just delete_at id because ids
## are relative (they're positions into the array).
def clear id
- return unless id # not sure why this happens---thread stuff?
@minibuf_mutex.synchronize do
@minibuf_stack[id] = nil
if id == @minibuf_stack.length - 1
def initialize hidden_labels=[], load_thread_opts={}
super()
+ @mutex = Mutex.new
@load_thread = nil
@load_thread_opts = load_thread_opts
@hidden_labels = hidden_labels + LabelManager::HIDDEN_LABELS
@date_width = DATE_WIDTH
@from_width = FROM_WIDTH
@size_width = nil
- @last_load_more_size = nil
@tags = Tagger.new self
UpdateManager.register self
+ @last_load_more_size = nil
to_load_more do |size|
next if @last_load_more_size == 0
load_threads :num => 1, :background => false
BufferManager.draw_screen
@ts.size - orig_size
end
+ synchronized :load_n_threads
def status
if (l = lines) == 0