summaryrefslogtreecommitdiff
path: root/lib/reline
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-04-02 17:18:37 +0900
committeraycabta <aycabta@gmail.com>2021-04-02 17:33:48 +0900
commit7e93917458cdc67399e82233ff0f13e3c8bd7065 (patch)
tree1419a01fa36a41d933e3d92d642a61dbfb61385c /lib/reline
parent9e336f73fb7d37f3b09e360f8204828bbca51cd5 (diff)
[ruby/reline] Reset @rest_height when clear screen
https://github.com/ruby/reline/commit/3a7019b0d5
Diffstat (limited to 'lib/reline')
-rw-r--r--lib/reline/line_editor.rb1
1 files changed, 1 insertions, 0 deletions
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