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

ruby-changes:68270

From: aycabta <ko1@a...>
Date: Tue, 5 Oct 2021 22:33:16 +0900 (JST)
Subject: [ruby-changes:68270] 6966c3ff44 (master): [ruby/reline] Change struct size correctly

https://git.ruby-lang.org/ruby.git/commit/?id=6966c3ff44

From 6966c3ff442d80e24afc56df450297ee3cd89416 Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Mon, 4 Oct 2021 00:15:18 +0900
Subject: [ruby/reline] Change struct size correctly

https://github.com/ruby/reline/commit/df2a1b4e08
---
 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 8f620685a2..8d1d4da633 100644
--- a/lib/reline/windows.rb
+++ b/lib/reline/windows.rb
@@ -323,7 +323,7 @@ class Reline::Windows https://github.com/ruby/ruby/blob/trunk/lib/reline/windows.rb#L323
   end
 
   def self.erase_after_cursor
-    csbi = 0.chr * 24
+    csbi = 0.chr * 22
     @@GetConsoleScreenBufferInfo.call(@@hConsoleHandle, csbi)
     attributes = csbi[8, 2].unpack1('S')
     cursor = csbi[4, 4].unpack1('L')
-- 
cgit v1.2.1


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

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