8000 Sort completion list · ruby/reline@6074069 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 6074069

Browse files
committed
Sort completion list
#### Legacy mode: ```console $ irb --legacy irb(main):001:0> l[TAB][TAB] lambda load local_variables loop ``` #### Before this patch: ```console $ irb irb(main):001:0> l[TAB][TAB] local_variables loop lambda load ``` #### After this patch: ```console $ irb irb(main):001:0> l[TAB][TAB] lambda load local_variables loop ```
1 parent b41024e commit 6074069

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/reline/line_editor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def rerender
317317
if @menu_info
318318
scroll_down(@highest_in_all - @first_line_started_from)
319319
@rerender_all = true
320-
@menu_info.list.each do |item|
320+
@menu_info.list.sort!.each do |item|
321321
Reline::IOGate.move_cursor_column(0)
322322
@output.print item
323323
@output.flush

0 commit comments

Comments
 (0)
0