From 6966c3ff442d80e24afc56df450297ee3cd89416 Mon Sep 17 00:00:00 2001 From: aycabta 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(-) (limited to 'lib/reline/windows.rb') 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 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.3