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:
parent
ac1f4fa469
commit
16d4774da1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue