commit | b771b6b5fe2ec36d23c21ab8229b15c80780468c | [log] [tgz] |
---|---|---|
author | Milly <milly.ca@gmail.com> | Tue Nov 23 12:07:25 2021 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Nov 23 12:07:25 2021 +0000 |
tree | 6a58085d018b8f8894fe3b903733f87f6312cbe1 | |
parent | e021662f39b38ef7cf27e13850d0ce6890e48376 [diff] [blame] |
patch 8.2.3653: terminal ANSI colors may be wrong Problem: Terminal ANSI colors may be wrong. Solution: Initialize the color type. (closes #9198, closes #9197)
diff --git a/src/terminal.c b/src/terminal.c index f6c283b..df1ca69 100644 --- a/src/terminal.c +++ b/src/terminal.c
@@ -4130,6 +4130,7 @@ { VTermColor color; + color.type = VTERM_COLOR_RGB; color.red = (unsigned)(rgb[index] >> 16); color.green = (unsigned)(rgb[index] >> 8) & 255; color.blue = (unsigned)rgb[index] & 255;