From ed8fb69fdee2f63aa6fc4e9e632c59cb58fcf00e Mon Sep 17 00:00:00 2001 From: William Morgan Date: Sun, 30 Dec 2007 12:16:52 -0800 Subject: [PATCH] remove spurious logging from completion code --- lib/sup/buffer.rb | 2 -- 1 file changed, 2 deletions(-) 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 -- 2.45.2