summaryrefslogtreecommitdiff
path: root/lib/reline/line_editor.rb
diff options
context:
space:
mode:
authoraycabta <[email protected]>2021-02-02 21:28:59 +0900
committeraycabta <[email protected]>2021-02-07 05:11:47 +0900
commita608bb3e9b13e81940ffbda5cdc30ad373aaa7a5 (patch)
tree4d940937b242efe7281fc597656e2ef622f2d4b7 /lib/reline/line_editor.rb
parent08162f0e6926441d6393d11de45671ab174d88dc (diff)
[ruby/reline] Move cursor just after the last line when finished
https://github.com/ruby/reline/commit/ba06e4c480
Diffstat (limited to 'lib/reline/line_editor.rb')
-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 e5c797154f..b21eeababf 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -429,6 +429,7 @@ class Reline::LineEditor
line = modify_lines(whole_lines)[@line_index]
prompt, prompt_width, prompt_list = check_multiline_prompt(whole_lines, prompt)
render_partial(prompt, prompt_width, line, @first_line_started_from)
+ move_cursor_down(@highest_in_all - (@first_line_started_from + @highest_in_this - 1) - 1)
scroll_down(1)
Reline::IOGate.move_cursor_column(0)
Reline::IOGate.erase_after_cursor