mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix completion menu state calculation
This commit is contained in:
parent
2993b36133
commit
ec75901120
1 changed files with 7 additions and 2 deletions
|
@ -257,10 +257,15 @@ class Reline::LineEditor
|
||||||
|
|
||||||
def rerender # TODO: support physical and logical lines
|
def rerender # TODO: support physical and logical lines
|
||||||
if @menu_info
|
if @menu_info
|
||||||
@output.puts
|
scroll_down(@highest_in_all - @first_line_started_from)
|
||||||
|
@rerender_all = true
|
||||||
@menu_info.list.each do |item|
|
@menu_info.list.each do |item|
|
||||||
@output.puts item
|
Reline::IOGate.move_cursor_column(0)
|
||||||
|
@output.print item
|
||||||
|
scroll_down(1)
|
||||||
end
|
end
|
||||||
|
scroll_down(@highest_in_all - 1)
|
||||||
|
move_cursor_up(@highest_in_all - 1 - @first_line_started_from)
|
||||||
@menu_info = nil
|
@menu_info = nil
|
||||||
end
|
end
|
||||||
return if @line.nil?
|
return if @line.nil?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue