bin/sup in sup-0.14.0 vs bin/sup in sup-0.14.1

- old
+ new

@@ -291,11 +291,11 @@ when :list_contacts b, new = bm.spawn_unless_exists("Contact List") { ContactListMode.new } b.mode.load_in_background if new when :search completions = LabelManager.all_labels.map { |l| "label:#{LabelManager.string_for l}" } - completions = completions.each { |l| l.fix_encoding } + completions = completions.each { |l| l.fix_encoding! } completions += Index::COMPL_PREFIXES query = BufferManager.ask_many_with_completions :search, "Search all messages (enter for saved searches): ", completions unless query.nil? if query.empty? bm.spawn_unless_exists("Saved searches") { SearchListMode.new } @@ -305,11 +305,11 @@ end when :search_unread SearchResultsMode.spawn_from_query "is:unread" when :list_labels labels = LabelManager.all_labels.map { |l| LabelManager.string_for l } - labels = labels.each { |l| l.fix_encoding } + labels = labels.each { |l| l.fix_encoding! } user_label = bm.ask_with_completions :label, "Show threads with label (enter for listing): ", labels unless user_label.nil? if user_label.empty? bm.spawn_unless_exists("Label list") { LabelListMode.new } if user_label && user_label.empty? @@ -373,10 +373,10 @@ PollManager.stop if PollManager.instantiated? IdleManager.stop if IdleManager.instantiated? Index.stop_lock_update_thread end - HookManager.run "shutdown" + HookManager.run "shutdown" if HookManager.instantiated? Index.stop_sync_worker Redwood::finish stop_cursing Redwood::Logger.remove_all_sinks!