Mercurial > vim
comparison src/job.c @ 28919:99c1356f4210 v8.2.4982
patch 8.2.4982: colors in terminal window are not 100% correct
Commit: https://github.com/vim/vim/commit/b2b3acbf2b3ae29ecf517f03b46fbeadf0c1a905
Author: LemonBoy <thatlemon@gmail.com>
Date: Fri May 20 10:10:34 2022 +0100
patch 8.2.4982: colors in terminal window are not 100% correct
Problem: Colors in terminal window are not 100% correct.
Solution: Use g:terminal_ansi_colors as documented. (closes https://github.com/vim/vim/issues/10429,
closes #7227 closes #10347)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 20 May 2022 11:15:04 +0200 |
parents | d0241e74bfdb |
children | 755ab148288b |
comparison
equal
deleted
inserted
replaced
28918:ec2988a3b03c | 28919:99c1356f4210 |
---|---|
546 | 546 |
547 if (!(supported2 & JO2_ANSI_COLORS)) | 547 if (!(supported2 & JO2_ANSI_COLORS)) |
548 break; | 548 break; |
549 | 549 |
550 if (item == NULL || item->v_type != VAR_LIST | 550 if (item == NULL || item->v_type != VAR_LIST |
551 || item->vval.v_list == NULL) | 551 || item->vval.v_list == NULL |
552 || item->vval.v_list->lv_first == &range_list_item) | |
552 { | 553 { |
553 semsg(_(e_invalid_value_for_argument_str), "ansi_colors"); | 554 semsg(_(e_invalid_value_for_argument_str), "ansi_colors"); |
554 return FAIL; | 555 return FAIL; |
555 } | 556 } |
556 | 557 |
557 CHECK_LIST_MATERIALIZE(item->vval.v_list); | |
558 li = item->vval.v_list->lv_first; | 558 li = item->vval.v_list->lv_first; |
559 for (; li != NULL && n < 16; li = li->li_next, n++) | 559 for (; li != NULL && n < 16; li = li->li_next, n++) |
560 { | 560 { |
561 char_u *color_name; | 561 char_u *color_name; |
562 guicolor_T guicolor; | 562 guicolor_T guicolor; |