aboutsummaryrefslogtreecommitdiffstats
path: root/lib/reline/windows.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2020-01-31 04:24:44 +0900
committeraycabta <aycabta@gmail.com>2020-02-02 03:28:07 +0900
commit16d4774da1f0c5f5a78dff752780e77ebdf9b2f8 (patch)
tree635bd7a82b460b4de5e077b6ab26ff93997255c4 /lib/reline/windows.rb
parentac1f4fa469cfcced9639dd1b148abe37a957c8e7 (diff)
downloadruby-16d4774da1f0c5f5a78dff752780e77ebdf9b2f8.tar.gz
[ruby/reline] Fix Reline::Windows#scroll_down
I mistook Right and Bottom. https://github.com/ruby/reline/commit/8be401c5f5
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 74b62233e5..2492dffd27 100644
--- a/lib/reline/windows.rb
+++ b/lib/reline/windows.rb
@@ -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)