# File lib/sup/modes/thread-index-mode.rb, line 467
  def multi_kill threads
    UndoManager.register "killing #{threads.size.pluralize 'thread'}" do
      threads.each do |t|
        t.remove_label :killed
        add_or_unhide t.first
        Index.save_thread t
      end
      regen_text
    end

    threads.each do |t|
      t.apply_label :killed
      hide_thread t
    end

    regen_text
    BufferManager.flash "#{threads.size.pluralize 'thread'} killed."
    threads.each { |t| Index.save_thread t }
  end