[前][次][番号順一覧][スレッド一覧]

ruby-changes:65169

From: aycabta <ko1@a...>
Date: Sun, 7 Feb 2021 05:16:56 +0900 (JST)
Subject: [ruby-changes:65169] a608bb3e9b (master): [ruby/reline] Move cursor just after the last line when finished

https://git.ruby-lang.org/ruby.git/commit/?id=a608bb3e9b

From a608bb3e9b13e81940ffbda5cdc30ad373aaa7a5 Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Tue, 2 Feb 2021 21:28:59 +0900
Subject: [ruby/reline] Move cursor just after the last line when finished

https://github.com/ruby/reline/commit/ba06e4c480
---
 lib/reline/line_editor.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index e5c7971..b21eeab 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -429,6 +429,7 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L429
         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
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]