From bf0a8a746228cbf06ce8ec3e2841d0b315409d6b Mon Sep 17 00:00:00 2001 From: aycabta Date: Fri, 1 Oct 2021 14:25:43 +0900 Subject: [PATCH] [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 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