From 31c69d66d2200566695a0c88dd68cdd04a77614d Mon Sep 17 00:00:00 2001 From: YO4 Date: Mon, 27 Dec 2021 19:17:33 +0900 Subject: [ruby/reline] windows fix scroll https://github.com/ruby/reline/commit/c559d0f7a9 --- lib/reline/windows.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb index f46ebd2109..f064472ce7 100644 --- a/lib/reline/windows.rb +++ b/lib/reline/windows.rb @@ -386,7 +386,7 @@ class Reline::Windows def self.scroll_down(val) return if val < 0 return unless csbi = get_console_screen_buffer_info - buffer_width, x, y, buffer_lines, attributes, window_left, window_top, window_bottom = csbi.unpack('ssssSssx2s') + buffer_width, buffer_lines, x, y, attributes, window_left, window_top, window_bottom = csbi.unpack('ssssSssx2s') screen_height = window_bottom - window_top + 1 val = screen_height if val > screen_height -- cgit v1.2.3