diff options
author | aycabta <aycabta@gmail.com> | 2020-09-12 10:07:18 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2020-09-12 10:07:18 +0900 |
commit | ae508633b7798dd600fd5c6d5095af5361b28c70 (patch) | |
tree | abc71d69d77558d38fbddc6040b472101e843bf9 /lib | |
parent | 777d5367496bd1e8dad500685c0786a2572fc9e8 (diff) | |
download | ruby-ae508633b7798dd600fd5c6d5095af5361b28c70.tar.gz |
Suppress "assigned but unused variable" warning
Diffstat (limited to 'lib')
-rw-r--r-- | lib/reline/windows.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb index a7bd381283..2a406e39d3 100644 --- a/lib/reline/windows.rb +++ b/lib/reline/windows.rb @@ -254,7 +254,7 @@ class Reline::Windows return if @@GetConsoleScreenBufferInfo.call(@@hConsoleHandle, csbi) == 0 buffer_width = csbi[0, 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) screen_topleft = window_top * 65536 written = 0.chr * 4 |