8000 Fix Reline::Windows#scroll_down · ruby/reline@8be401c · GitHub
[go: up one dir, main page]

Skip to content

Commit 8be401c

Browse files
committed
Fix Reline::Windows#scroll_down
I mistook Right and Bottom.
1 parent 225670d commit 8be401c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/reline/windows.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def self.erase_after_cursor
238238

239239
def self.scroll_down(val)
240240
return if val.zero?
241-
scroll_rectangle = [0, val, get_screen_size.first, get_screen_size.last].pack('s4')
241+
scroll_rectangle = [0, val, get_screen_size.last, get_screen_size.first].pack('s4')
242242
destination_origin = 0 # y * 65536 + x
243243
fill = [' '.ord, 0].pack('SS')
244244
@@ScrollConsoleScreenBuffer.call(@@hConsoleHandle, scroll_rectangle, nil, destination_origin, fill)

0 commit comments

Comments
 (0)
0