diff options
author | Milly <milly.ca@gmail.com> | 2021-11-23 12:07:25 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-23 12:07:25 +0000 |
commit | b771b6b5fe2ec36d23c21ab8229b15c80780468c (patch) | |
tree | 6a58085d018b8f8894fe3b903733f87f6312cbe1 /src/terminal.c | |
parent | e021662f39b38ef7cf27e13850d0ce6890e48376 (diff) | |
download | vim-git-b771b6b5fe2ec36d23c21ab8229b15c80780468c.tar.gz |
patch 8.2.3653: terminal ANSI colors may be wrongv8.2.3653
Problem: Terminal ANSI colors may be wrong.
Solution: Initialize the color type. (closes #9198, closes #9197)
Diffstat (limited to 'src/terminal.c')
-rw-r--r-- | src/terminal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/terminal.c b/src/terminal.c index f6c283b63..df1ca6990 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -4130,6 +4130,7 @@ set_vterm_palette(VTerm *vterm, long_u *rgb) { 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; |