Skip to content

Commit

Permalink
Fixed mistake in countting
Browse files Browse the repository at this point in the history
  • Loading branch information
tradzik committed Feb 16, 2015
1 parent fc653af commit 64372b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sup/modes/label_search_results_mode.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def self.spawn_nicely label
when :inbox
BufferManager.raise_to_front InboxMode.instance.buffer
else
unread = (label == :unread)? total : Index.num_results_for(:labels => [label, :unread])
unread = Index.num_results_for(:labels => [label, :unread])
allmsg = Index.num_results_for(:labels => [label])
b, new = BufferManager.spawn_unless_exists("All threads with label '#{label}' - #{allmsg.pluralize 'message'}, #{unread} unread") { LabelSearchResultsMode.new [label] }
b.mode.load_threads :num => b.content_height if new
Expand Down

0 comments on commit 64372b9

Please sign in to comment.