ruby-changes:59905
From: aycabta <ko1@a...>
Date: Sun, 2 Feb 2020 04:56:06 +0900 (JST)
Subject: [ruby-changes:59905] 16d4774da1 (master): [ruby/reline] Fix Reline::Windows#scroll_down
https://git.ruby-lang.org/ruby.git/commit/?id=16d4774da1 From 16d4774da1f0c5f5a78dff752780e77ebdf9b2f8 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Fri, 31 Jan 2020 04:24:44 +0900 Subject: [ruby/reline] Fix Reline::Windows#scroll_down I mistook Right and Bottom. https://github.com/ruby/reline/commit/8be401c5f5 diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb index 74b6223..2492dff 100644 --- a/lib/reline/windows.rb +++ b/lib/reline/windows.rb @@ -238,7 +238,7 @@ class Reline::Windows https://github.com/ruby/ruby/blob/trunk/lib/reline/windows.rb#L238 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) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/