mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
7f2123bc08
commit
1c49d809f4
1 changed files with 2 additions and 2 deletions
|
@ -329,8 +329,8 @@ class Reline::Windows
|
|||
unless csbi = get_console_screen_buffer_info
|
||||
return Reline::CursorPos.new(0, 0)
|
||||
end
|
||||
x = csbi[4, 2].unpack1('s*')
|
||||
y = csbi[6, 2].unpack1('s*')
|
||||
x = csbi[4, 2].unpack1('s')
|
||||
y = csbi[6, 2].unpack1('s')
|
||||
Reline::CursorPos.new(x, y)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue