From 7e93917458cdc67399e82233ff0f13e3c8bd7065 Mon Sep 17 00:00:00 2001 From: aycabta Date: Fri, 2 Apr 2021 17:18:37 +0900 Subject: [ruby/reline] Reset @rest_height when clear screen https://github.com/ruby/reline/commit/3a7019b0d5 --- lib/reline/line_editor.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/reline') diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 5a2a3f115f..7d71e62d63 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -813,6 +813,7 @@ class Reline::LineEditor end move_cursor_up(back) move_cursor_down(@first_line_started_from + @started_from) + @rest_height = (Reline::IOGate.get_screen_size.first - 1) - Reline::IOGate.cursor_pos.y Reline::IOGate.move_cursor_column((prompt_width + @cursor) % @screen_size.last) end -- cgit v1.2.3