diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb index 6b80f6ca2d..0bd8d1b147 100644 --- a/lib/reline/windows.rb +++ b/lib/reline/windows.rb @@ -122,13 +122,13 @@ class Reline::Windows end def self.get_screen_size - csbi = 0.chr * 24 + csbi = 0.chr * 22 @@GetConsoleScreenBufferInfo.call(@@hConsoleHandle, csbi) csbi[0, 4].unpack('SS').reverse end def self.cursor_pos - csbi = 0.chr * 24 + csbi = 0.chr * 22 @@GetConsoleScreenBufferInfo.call(@@hConsoleHandle, csbi) x = csbi[4, 2].unpack('s*').first y = csbi[6, 4].unpack('s*').first