fix a <1.9.2 compat bug. =(
git-svn-id: file:///home/svn/framework3/trunk@11569 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
166b4d3250
commit
0355271662
|
@ -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 []
|
||||
|
|
Loading…
Reference in New Issue