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

ruby-changes:67298

From: aycabta <ko1@a...>
Date: Sun, 29 Aug 2021 20:30:40 +0900 (JST)
Subject: [ruby-changes:67298] b95e5f4a41 (master): [ruby/reline] Move cursor to rerender right margin of dialog correctly

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

From b95e5f4a41a743bce2c15f0cc7cb408fecf49aa1 Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Sun, 22 Aug 2021 00:13:45 +0900
Subject: [ruby/reline] Move cursor to rerender right margin of dialog
 correctly

https://github.com/ruby/reline/commit/554855013b
---
 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 a8b3d99..d3cc719 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -659,6 +659,7 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L659
         else
           s = Reline::Unicode.take_range(visual_lines[start + i], old_dialog_column + DIALOG_WIDTH, width)
         end
+        Reline::IOGate.move_cursor_column(@dialog_column + DIALOG_WIDTH)
         @output.write "\e[39m\e[49m%-#{width}s\e[39m\e[49m" % s
         move_cursor_down(1) if i < (line_num - 1)
       end
-- 
cgit v1.1


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

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