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

ruby-changes:68215

From: aycabta <ko1@a...>
Date: Sun, 3 Oct 2021 14:27:42 +0900 (JST)
Subject: [ruby-changes:68215] bf0a8a7462 (master): [ruby/reline] Call LineEditor#resize on Windows

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

From bf0a8a746228cbf06ce8ec3e2841d0b315409d6b Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Fri, 1 Oct 2021 14:25:43 +0900
Subject: [ruby/reline] Call LineEditor#resize on Windows

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

diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb
index e94d69a4a6..4ae0b868e7 100644
--- a/lib/reline/windows.rb
+++ b/lib/reline/windows.rb
@@ -234,6 +234,7 @@ class Reline::Windows https://github.com/ruby/ruby/blob/trunk/lib/reline/windows.rb#L234
   def self.check_input_event
     num_of_events = 0.chr * 8
     while @@output_buf.empty? #or true
+      Reline.core.line_editor.resize
       next if @@WaitForSingleObject.(@@hConsoleInputHandle, 100) != 0 # max 0.1 sec
       next if @@GetNumberOfConsoleInputEvents.(@@hConsoleInputHandle, num_of_events) == 0 or num_of_events.unpack1('L') == 0
       input_record = 0.chr * 18
-- 
cgit v1.2.1


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

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