1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

lib/pry/command_set.rb: do not mutate completions (fixes #1021)

The bug was introduced by 16c08857a6
This commit is contained in:
Kyrylo Silin 2013-11-26 00:03:33 +02:00
parent 5aa7e38e63
commit 40321e1bd9

View file

@ -410,7 +410,7 @@ class Pry
else
commands.keys.select do |key|
String === key && key.start_with?(search)
end.map{ |key| key + " " } << Bond::DefaultMission.completions
end.map{ |key| key + " " } + Bond::DefaultMission.completions
end
end
end