From df2a1b4e089393c9ee101abf0fbc676d81de0a8d Mon Sep 17 00:00:00 2001 From: aycabta Date: Mon, 4 Oct 2021 00:15:18 +0900 Subject: [PATCH] Change struct size correctly --- 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 @@ def self.move_cursor_down(val) 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')