fix a <1.9.2 compat bug. =(

git-svn-id: file:///home/svn/framework3/trunk@11569 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2011-01-13 00:17:07 +00:00
parent 166b4d3250
commit 0355271662
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ module DispatcherShell
return [] if res.nil?
items.concat(res)
regexp = /^#{Regexp.quote(str)}/
items.select! { |i| i =~ regexp }
items = items.select { |i| i =~ regexp }
else
# Avoid the default completion list for known commands
return []