summaryrefslogtreecommitdiff
path: root/lib/reline/windows.rb
diff options
context:
space:
mode:
authorYO4 <ysno@ac.auone-net.jp>2021-12-27 19:17:33 +0900
committergit <svn-admin@ruby-lang.org>2021-12-30 20:53:21 +0900
commit31c69d66d2200566695a0c88dd68cdd04a77614d (patch)
tree4821168c5872a3d45a2b153845d14220d618b387 /lib/reline/windows.rb
parent2a311594cc02eace6122d7e5715ae7ac61bc40a7 (diff)
[ruby/reline] windows fix scroll
https://github.com/ruby/reline/commit/c559d0f7a9
Diffstat (limited to 'lib/reline/windows.rb')
-rw-r--r--lib/reline/windows.rb2
1 files changed, 1 insertions, 1 deletions
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