1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/reline] Change struct size correctly

df2a1b4e08
This commit is contained in:
aycabta 2021-10-04 00:15:18 +09:00 committed by git
parent 7c98e673d7
commit 6966c3ff44

View file

@ -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')