From 5b3079a8a5f66859c8d80ad55b5424c7c1877443 Mon Sep 17 00:00:00 2001 From: st0012 Date: Thu, 6 Oct 2022 12:37:37 +0100 Subject: [ruby/irb] Sort constant completion's candidates https://github.com/ruby/irb/commit/ee9b33c817 --- lib/irb/completion.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb index 9d386bbeca..dbd652769e 100644 --- a/lib/irb/completion.rb +++ b/lib/irb/completion.rb @@ -255,7 +255,7 @@ module IRB candidates = [] end - select_message(receiver, message, candidates, "::") + select_message(receiver, message, candidates.sort, "::") end when /^(:[^:.]+)(\.|::)([^.]*)$/ -- cgit v1.2.3