From 34e24cb2f7341d34e24e4ccd3e4ed058878ef788 Mon Sep 17 00:00:00 2001 From: Koichi Shiraishi Date: Thu, 23 Feb 2017 19:44:09 +0900 Subject: terminal: Initialize colors in reverse order (#6160) Closes #3601 Signed-off-by: Koichi Shiraishi --- src/nvim/terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit