From: wmorgan Date: Wed, 14 Nov 2007 17:03:38 +0000 (+0000) Subject: bugfix in hide_thread X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=c75376f1dff385cb66bdbae5552e05bd436cb8a5;p=sup bugfix in hide_thread git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@703 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb index a79dc54..10abfaf 100644 --- a/lib/sup/modes/thread-index-mode.rb +++ b/lib/sup/modes/thread-index-mode.rb @@ -477,9 +477,9 @@ protected def hide_thread t @mutex.synchronize do + i = @threads.index(t) or return raise "already hidden" if @hidden_threads[t] @hidden_threads[t] = true - i = @threads.index t @threads.delete_at i @size_widgets.delete_at i @tags.drop_tag_for t