ruby-changes:64920
From: aycabta <ko1@a...>
Date: Mon, 18 Jan 2021 02:18:37 +0900 (JST)
Subject: [ruby-changes:64920] e1449ae74f (master): [ruby/reline] Reline::Windows.erase_after_cursor erases attributes too
https://git.ruby-lang.org/ruby.git/commit/?id=e1449ae74f From e1449ae74f09171542431875005b38c82711a253 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Thu, 14 Jan 2021 09:16:49 +0900 Subject: [ruby/reline] Reline::Windows.erase_after_cursor erases attributes too https://github.com/ruby/reline/commit/68b961dfc7 diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb index 937941b..4f5fcb7 100644 --- a/lib/reline/windows.rb +++ b/lib/reline/windows.rb @@ -258,6 +258,7 @@ class Reline::Windows https://github.com/ruby/ruby/blob/trunk/lib/reline/windows.rb#L258 cursor = csbi[4, 4].unpack('L').first written = 0.chr * 4 @@FillConsoleOutputCharacter.call(@@hConsoleHandle, 0x20, get_screen_size.last - cursor_pos.x, cursor, written) + @@FillConsoleOutputAttribute.call(@@hConsoleHandle, 0, get_screen_size.last - cursor_pos.x, cursor, written) end def self.scroll_down(val) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/