mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Calculate vertical position correctly when rerendering all lines
This commit is contained in:
parent
90014dddec
commit
5a229b0a88
1 changed files with 2 additions and 1 deletions
|
@ -422,7 +422,8 @@ class Reline::LineEditor
|
|||
result + calculate_height_by_width(@prompt_width + calculate_width(line))
|
||||
}
|
||||
end
|
||||
move_cursor_down(@first_line_started_from)
|
||||
@started_from = calculate_height_by_width(@prompt_width + @cursor) - 1
|
||||
move_cursor_down(@first_line_started_from + @started_from)
|
||||
Reline::IOGate.move_cursor_column((prompt_width + @cursor) % @screen_size.last)
|
||||
@rerender_all = false
|
||||
rendered = true
|
||||
|
|
Loading…
Reference in a new issue