Skip to content

Commit

Permalink
Change struct size correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Oct 3, 2021
1 parent 52b7e20 commit df2a1b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reline/windows.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit df2a1b4

Please sign in to comment.