Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] [PATCH] Add tab-completion to multi add labels (;l)
@ 2008-04-04 19:51 Marc Hartstein
  2008-05-01  1:13 ` William Morgan
  0 siblings, 1 reply; 2+ messages in thread
From: Marc Hartstein @ 2008-04-04 19:51 UTC (permalink / raw)


---
 lib/sup/modes/thread-index-mode.rb |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
index e24d7e0..0f9d12d 100644
--- a/lib/sup/modes/thread-index-mode.rb
+++ b/lib/sup/modes/thread-index-mode.rb
@@ -440,9 +440,8 @@ EOS
   end
 
   def multi_edit_labels threads
-    answer = BufferManager.ask :add_labels, "add labels: "
-    return unless answer
-    user_labels = answer.split(/\s+/).map { |l| l.intern }
+    user_labels = BufferManager.ask_for_labels :add_labels, "Add labels: ", [], @hidden_labels
+    return unless user_labels
     
     hl = user_labels.select { |l| @hidden_labels.member? l }
     if hl.empty?
-- 
1.5.3.7



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [sup-talk] [PATCH] Add tab-completion to multi add labels (;l)
  2008-04-04 19:51 [sup-talk] [PATCH] Add tab-completion to multi add labels (;l) Marc Hartstein
@ 2008-05-01  1:13 ` William Morgan
  0 siblings, 0 replies; 2+ messages in thread
From: William Morgan @ 2008-05-01  1:13 UTC (permalink / raw)


Applied directly to master. Thanks!

-- 
William <wmorgan-sup at masanjin.net>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-01  1:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-04 19:51 [sup-talk] [PATCH] Add tab-completion to multi add labels (;l) Marc Hartstein
2008-05-01  1:13 ` William Morgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox