]> git.cworth.org Git - sup/commitdiff
bugfix in ask_with_completions: case sensitivity
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sun, 8 Jul 2007 23:12:54 +0000 (23:12 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sun, 8 Jul 2007 23:12:54 +0000 (23:12 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@488 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/buffer.rb

index 47a844a499947eea4b1c44013f395a44b3eb397e..b4b7ef785dce68e33b1a983650a1e5eeb6435df1 100644 (file)
@@ -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