diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb index 0bd8d1b147..7d112e7632 100644 --- a/lib/reline/windows.rb +++ b/lib/reline/windows.rb @@ -131,7 +131,7 @@ class Reline::Windows csbi = 0.chr * 22 @@GetConsoleScreenBufferInfo.call(@@hConsoleHandle, csbi) x = csbi[4, 2].unpack('s*').first - y = csbi[6, 4].unpack('s*').first + y = csbi[6, 2].unpack('s*').first Reline::CursorPos.new(x, y) end