aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/terminal.c
diff options
context:
space:
mode:
authorKoichi Shiraishi <zchee.io@gmail.com>2017-02-23 19:44:09 +0900
committerJustin M. Keyes <justinkz@gmail.com>2017-02-23 11:44:09 +0100
commit34e24cb2f7341d34e24e4ccd3e4ed058878ef788 (patch)
treeed3802740a11cb16c32f742c011723e107a1f186 /src/nvim/terminal.c
parentddab4661f7acad985096138b0c29a2b7e569022a (diff)
downloadrneovim-34e24cb2f7341d34e24e4ccd3e4ed058878ef788.tar.gz
rneovim-34e24cb2f7341d34e24e4ccd3e4ed058878ef788.tar.bz2
rneovim-34e24cb2f7341d34e24e4ccd3e4ed058878ef788.zip
terminal: Initialize colors in reverse order (#6160)
Closes #3601 Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
Diffstat (limited to 'src/nvim/terminal.c')
-rw-r--r--src/nvim/terminal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c
index b0104a4e4c..02500a407c 100644
--- a/src/nvim/terminal.c
+++ b/src/nvim/terminal.c
@@ -174,7 +174,7 @@ void terminal_init(void)
VTerm *vt = vterm_new(24, 80);
VTermState *state = vterm_obtain_state(vt);
- for (int color_index = 0; color_index < 256; color_index++) {
+ for (int color_index = 255; color_index >= 0; color_index--) {
VTermColor color;
// Some of the default 16 colors has the same color as the later
// 240 colors. To avoid collisions, we will use the custom colors