diff options
author | aycabta <[email protected]> | 2021-04-02 17:18:37 +0900 |
---|---|---|
committer | aycabta <[email protected]> | 2021-04-02 17:33:48 +0900 |
commit | 7e93917458cdc67399e82233ff0f13e3c8bd7065 (patch) | |
tree | 1419a01fa36a41d933e3d92d642a61dbfb61385c /lib | |
parent | 9e336f73fb7d37f3b09e360f8204828bbca51cd5 (diff) |
[ruby/reline] Reset @rest_height when clear screen
https://github.com/ruby/reline/commit/3a7019b0d5
Diffstat (limited to 'lib')
-rw-r--r-- | lib/reline/line_editor.rb | 1 |
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 |