зеркало из https://github.com/github/ruby.git
[ruby/reline] 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 ``` https://github.com/ruby/reline/commit/6074069c7d
This commit is contained in:
Родитель
ded072c2b7
Коммит
9b928fa443
|
@ -317,7 +317,7 @@ class Reline::LineEditor
|
|||
if @menu_info
|
||||
scroll_down(@highest_in_all - @first_line_started_from)
|
||||
@rerender_all = true
|
||||
@menu_info.list.each do |item|
|
||||
@menu_info.list.sort!.each do |item|
|
||||
Reline::IOGate.move_cursor_column(0)
|
||||
@output.print item
|
||||
@output.flush
|
||||
|
|
Загрузка…
Ссылка в новой задаче