aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-01-14 09:16:49 +0900
committeraycabta <aycabta@gmail.com>2021-01-18 02:09:53 +0900
commite1449ae74f09171542431875005b38c82711a253 (patch)
tree286bd849155c0bf17a8a3db26db6ce39d720a26a
parent05df7e0d4a09eaacb91388f32ef557d1d5fbe082 (diff)
downloadruby-e1449ae74f09171542431875005b38c82711a253.tar.gz
[ruby/reline] Reline::Windows.erase_after_cursor erases attributes too
https://github.com/ruby/reline/commit/68b961dfc7
-rw-r--r--lib/reline/windows.rb1
1 files changed, 1 insertions, 0 deletions
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
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)