sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 8258760c40ce9697f2e16634702d45a88ffab62d
parent 5b9e55388a0c261353073d0d88fcfb2ec1953a1b
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Sun,  8 Jul 2007 23:12:54 +0000

bugfix in ask_with_completions: case sensitivity

git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@488 5c8cc53c-5e98-4d25-b20a-d8db53a31250

Diffstat:
M lib/sup/buffer.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb
@@ -328,7 +328,7 @@ class BufferManager
 
   def ask_with_completions domain, question, completions, default=nil
     ask domain, question, default do |s|
-      completions.select { |x| x =~ /^#{s}/i }.map { |x| [x, x] }
+      completions.select { |x| x =~ /^#{s}/i }.map { |x| [x.downcase, x] }
     end
   end