[前][次][番号順一覧][スレッド一覧]

ruby-changes:70663

From: YO4 <ko1@a...>
Date: Thu, 30 Dec 2021 20:53:28 +0900 (JST)
Subject: [ruby-changes:70663] 31c69d66d2 (master): [ruby/reline] windows fix scroll

https://git.ruby-lang.org/ruby.git/commit/?id=31c69d66d2

From 31c69d66d2200566695a0c88dd68cdd04a77614d Mon Sep 17 00:00:00 2001
From: YO4 <ysno@a...>
Date: Mon, 27 Dec 2021 19:17:33 +0900
Subject: [ruby/reline] windows fix scroll

https://github.com/ruby/reline/commit/c559d0f7a9
---
 lib/reline/windows.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb
index f46ebd21091..f064472ce76 100644
--- a/lib/reline/windows.rb
+++ b/lib/reline/windows.rb
@@ -386,7 +386,7 @@ class Reline::Windows https://github.com/ruby/ruby/blob/trunk/lib/reline/windows.rb#L386
   def self.scroll_down(val)
     return if val < 0
     return unless csbi = get_console_screen_buffer_info
-    buffer_width, x, y, buffer_lines, attributes, window_left, window_top, window_bottom = csbi.unpack('ssssSssx2s')
+    buffer_width, buffer_lines, x, y, attributes, window_left, window_top, window_bottom = csbi.unpack('ssssSssx2s')
     screen_height = window_bottom - window_top + 1
     val = screen_height if val > screen_height
 
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]