From: William Morgan Date: Sun, 30 Dec 2007 20:16:52 +0000 (-0800) Subject: remove spurious logging from completion code X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=ed8fb69fdee2f63aa6fc4e9e632c59cb58fcf00e;p=sup remove spurious logging from completion code --- diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb index 4cab8bb..fa1afe6 100644 --- a/lib/sup/buffer.rb +++ b/lib/sup/buffer.rb @@ -420,10 +420,8 @@ EOS def ask_many_emails_with_completions domain, question, completions, default=nil ask domain, question, default do |partial| prefix, target = partial.split_on_commas_with_remainder - Redwood::log "before: prefix #{prefix.inspect}, target #{target.inspect}" target ||= prefix.pop || "" prefix = prefix.join(", ") + (prefix.empty? ? "" : ", ") - Redwood::log "after: prefix #{prefix.inspect}, target #{target.inspect}" completions.select { |x| x =~ /^#{target}/i }.map { |x| [prefix + x, x] } end end