diff options
author | aycabta <aycabta@gmail.com> | 2021-09-08 00:40:33 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-09-08 01:11:13 +0900 |
commit | 95089ddaf486e6ab245aa479ef1d6da30412a8f6 (patch) | |
tree | 5515c342a362cc42693b3d8996646ccbed5fad5b /lib/reline/line_editor.rb | |
parent | 6faf653ab0cd966f738b8e1d41e92f816a360959 (diff) |
[ruby/reline] Move only one line when render a line and then go to the next line
https://github.com/ruby/reline/commit/8a966cd962
Diffstat (limited to 'lib/reline/line_editor.rb')
-rw-r--r-- | lib/reline/line_editor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index fab0134419..21c031d57a 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -1220,7 +1220,7 @@ class Reline::LineEditor height = render_partial(prompt, prompt_width, line, back, with_control: false) end if index < (@buffer_of_lines.size - 1) - move_cursor_down(height) + move_cursor_down(1) back += height end end |