summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/reline/line_editor.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index 99a0b6ce22..a47fccf005 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -382,6 +382,9 @@ class Reline::LineEditor
line = modify_lines(whole_lines)[@line_index]
if !@is_multiline
render_partial(prompt, prompt_width, line)
+ scroll_down(1)
+ Reline::IOGate.move_cursor_column(0)
+ Reline::IOGate.erase_after_cursor
elsif !finished?
render_partial(prompt, prompt_width, line)
else