summaryrefslogtreecommitdiff
path: root/lib/reline/windows.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-10-01 14:25:43 +0900
committergit <svn-admin@ruby-lang.org>2021-10-03 14:27:33 +0900
commitbf0a8a746228cbf06ce8ec3e2841d0b315409d6b (patch)
tree8b061bfcc3533bcb9f2548e2f233b4abd7ab3c65 /lib/reline/windows.rb
parentef350b3a5645a97270cbc72356eba671a1a41c20 (diff)
[ruby/reline] Call LineEditor#resize on Windows
https://github.com/ruby/reline/commit/65b27dd2ff
Diffstat (limited to 'lib/reline/windows.rb')
-rw-r--r--lib/reline/windows.rb1
1 files changed, 1 insertions, 0 deletions
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