Skip to content

Commit

Permalink
terminal: Initialize colors in reverse order (#6160)
Browse files Browse the repository at this point in the history
Closes #3601

Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
  • Loading branch information
zchee authored and justinmk committed Feb 23, 2017
1 parent ddab466 commit 34e24cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nvim/terminal.c
Expand Up @@ -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
Expand Down

0 comments on commit 34e24cb

Please sign in to comment.