From e1449ae74f09171542431875005b38c82711a253 Mon Sep 17 00:00:00 2001 From: aycabta 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 --- lib/reline/windows.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb index 937941b960..4f5fcb74bc 100644 --- a/lib/reline/windows.rb +++ b/lib/reline/windows.rb @@ -258,6 +258,7 @@ class Reline::Windows 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 v1.2.3