1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/reline] Fix Reline::Windows#scroll_down

I mistook Right and Bottom.

8be401c5f5
This commit is contained in:
aycabta 2020-01-31 04:24:44 +09:00
parent ac1f4fa469
commit 16d4774da1

View file

@ -238,7 +238,7 @@ class Reline::Windows
def self.scroll_down(val)
return if val.zero?
scroll_rectangle = [0, val, get_screen_size.first, get_screen_size.last].pack('s4')
scroll_rectangle = [0, val, get_screen_size.last, get_screen_size.first].pack('s4')
destination_origin = 0 # y * 65536 + x
fill = [' '.ord, 0].pack('SS')
@@ScrollConsoleScreenBuffer.call(@@hConsoleHandle, scroll_rectangle, nil, destination_origin, fill)