Suppress "assigned but unused variable" warning
This commit is contained in:
parent
777d536749
commit
ae508633b7
@ -254,7 +254,7 @@ class Reline::Windows
|
|||||||
return if @@GetConsoleScreenBufferInfo.call(@@hConsoleHandle, csbi) == 0
|
return if @@GetConsoleScreenBufferInfo.call(@@hConsoleHandle, csbi) == 0
|
||||||
buffer_width = csbi[0, 2].unpack('S').first
|
buffer_width = csbi[0, 2].unpack('S').first
|
||||||
attributes = csbi[8, 2].unpack('S').first
|
attributes = csbi[8, 2].unpack('S').first
|
||||||
window_left, window_top, window_right, window_bottom = *csbi[10,8].unpack('S*')
|
_window_left, window_top, _window_right, window_bottom = *csbi[10,8].unpack('S*')
|
||||||
fill_length = buffer_width * (window_bottom - window_top + 1)
|
fill_length = buffer_width * (window_bottom - window_top + 1)
|
||||||
screen_topleft = window_top * 65536
|
screen_topleft = window_top * 65536
|
||||||
written = 0.chr * 4
|
written = 0.chr * 4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user