Mercurial > vim
comparison src/highlight.c @ 25965:1266292376c7 v8.2.3516
patch 8.2.3516: terminal window does not have transparent background
Commit: https://github.com/vim/vim/commit/7b5f45be2197403d631b5a3d633f6a20afdf806e
Author: Milly <milly.ca@gmail.com>
Date: Fri Oct 15 22:25:43 2021 +0100
patch 8.2.3516: terminal window does not have transparent background
Problem: Terminal window does not have transparent background when
'termguicolors' is used.
Solution: Fix the background color. (closes #2361, closes #9002)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 15 Oct 2021 23:30:04 +0200 |
parents | 7334bf933510 |
children | 8fceae196d4f |
comparison
equal
deleted
inserted
replaced
25964:0cc536850b7e | 25965:1266292376c7 |
---|---|
639 int doclear = FALSE; | 639 int doclear = FALSE; |
640 int dolink = FALSE; | 640 int dolink = FALSE; |
641 int error = FALSE; | 641 int error = FALSE; |
642 int color; | 642 int color; |
643 int is_normal_group = FALSE; // "Normal" group | 643 int is_normal_group = FALSE; // "Normal" group |
644 #ifdef FEAT_TERMINAL | |
645 int is_terminal_group = FALSE; // "Terminal" group | |
646 #endif | |
647 #ifdef FEAT_GUI_X11 | 644 #ifdef FEAT_GUI_X11 |
648 int is_menu_group = FALSE; // "Menu" group | 645 int is_menu_group = FALSE; // "Menu" group |
649 int is_scrollbar_group = FALSE; // "Scrollbar" group | 646 int is_scrollbar_group = FALSE; // "Scrollbar" group |
650 int is_tooltip_group = FALSE; // "Tooltip" group | 647 int is_tooltip_group = FALSE; // "Tooltip" group |
651 int do_colors = FALSE; // need to update colors? | 648 int do_colors = FALSE; // need to update colors? |
880 // Make a copy so we can check if any attribute actually changed. | 877 // Make a copy so we can check if any attribute actually changed. |
881 item_before = HL_TABLE()[idx]; | 878 item_before = HL_TABLE()[idx]; |
882 | 879 |
883 if (STRCMP(HL_TABLE()[idx].sg_name_u, "NORMAL") == 0) | 880 if (STRCMP(HL_TABLE()[idx].sg_name_u, "NORMAL") == 0) |
884 is_normal_group = TRUE; | 881 is_normal_group = TRUE; |
885 #ifdef FEAT_TERMINAL | |
886 else if (STRCMP(HL_TABLE()[idx].sg_name_u, "TERMINAL") == 0) | |
887 is_terminal_group = TRUE; | |
888 #endif | |
889 #ifdef FEAT_GUI_X11 | 882 #ifdef FEAT_GUI_X11 |
890 else if (STRCMP(HL_TABLE()[idx].sg_name_u, "MENU") == 0) | 883 else if (STRCMP(HL_TABLE()[idx].sg_name_u, "MENU") == 0) |
891 is_menu_group = TRUE; | 884 is_menu_group = TRUE; |
892 else if (STRCMP(HL_TABLE()[idx].sg_name_u, "SCROLLBAR") == 0) | 885 else if (STRCMP(HL_TABLE()[idx].sg_name_u, "SCROLLBAR") == 0) |
893 is_scrollbar_group = TRUE; | 886 is_scrollbar_group = TRUE; |
1532 #endif | 1525 #endif |
1533 #ifdef FEAT_VTP | 1526 #ifdef FEAT_VTP |
1534 control_console_color_rgb(); | 1527 control_console_color_rgb(); |
1535 #endif | 1528 #endif |
1536 } | 1529 } |
1537 #ifdef FEAT_TERMINAL | |
1538 else if (is_terminal_group) | |
1539 set_terminal_default_colors( | |
1540 HL_TABLE()[idx].sg_cterm_fg, HL_TABLE()[idx].sg_cterm_bg); | |
1541 #endif | |
1542 #ifdef FEAT_GUI_X11 | 1530 #ifdef FEAT_GUI_X11 |
1543 # ifdef FEAT_MENU | 1531 # ifdef FEAT_MENU |
1544 else if (is_menu_group) | 1532 else if (is_menu_group) |
1545 { | 1533 { |
1546 if (gui.in_use && do_colors) | 1534 if (gui.in_use && do_colors) |