summaryrefslogtreecommitdiff
path: root/lib/reline/windows.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-10-04 00:15:18 +0900
committergit <svn-admin@ruby-lang.org>2021-10-05 22:32:56 +0900
commit6966c3ff442d80e24afc56df450297ee3cd89416 (patch)
tree2c899f2c7e8070aaa8b53d5dc1272f38d2dc8fc0 /lib/reline/windows.rb
parent7c98e673d7828f36682a013c90120b41ab842a1f (diff)
[ruby/reline] Change struct size correctly
https://github.com/ruby/reline/commit/df2a1b4e08
Diffstat (limited to 'lib/reline/windows.rb')
-rw-r--r--lib/reline/windows.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb
index 8f620685a2..8d1d4da633 100644
--- a/lib/reline/windows.rb
+++ b/lib/reline/windows.rb
@@ -323,7 +323,7 @@ class Reline::Windows
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')