From 544f3d1c90545f4bb6c70374816dcbbd0b6c7bbf Mon Sep 17 00:00:00 2001 From: HASUMI Hitoshi Date: Mon, 6 Nov 2023 22:49:57 +0900 Subject: [PATCH] Update lib/reline/face.rb Co-authored-by: ima1zumi <52617472+ima1zumi@users.noreply.github.com> --- lib/reline/face.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reline/face.rb b/lib/reline/face.rb index 548bfbcaa0..b78f3b1ca5 100644 --- a/lib/reline/face.rb +++ b/lib/reline/face.rb @@ -84,7 +84,7 @@ def sgr_rgb(key, value) return nil unless rgb_expression?(value) case key when :foreground - "38;2;" + "38;2;" when :background "48;2;" end + value[1, 6].scan(/../).map(&:hex).join(";")