Mercurial > vim
comparison src/screen.c @ 20619:68c206d3a251 v8.2.0863
patch 8.2.0863: cannot set a separate color for underline/undercurl
Commit: https://github.com/vim/vim/commit/e023e88bed3f2e0a7ea4cf10cac2de80bc9c271c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 31 16:42:30 2020 +0200
patch 8.2.0863: cannot set a separate color for underline/undercurl
Problem: Cannot set a separate color for underline/undercurl.
Solution: Add the t_AU and t_8u termcap codes. (Timur Celik, closes https://github.com/vim/vim/issues/6011)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 31 May 2020 16:45:03 +0200 |
parents | 4411c2b96af9 |
children | 3af71cbcfdbe |
comparison
equal
deleted
inserted
replaced
20618:8b79d6353530 | 20619:68c206d3a251 |
---|---|
1864 if (t_colors > 1) | 1864 if (t_colors > 1) |
1865 { | 1865 { |
1866 if (aep->ae_u.cterm.bg_color) | 1866 if (aep->ae_u.cterm.bg_color) |
1867 term_bg_color(aep->ae_u.cterm.bg_color - 1); | 1867 term_bg_color(aep->ae_u.cterm.bg_color - 1); |
1868 } | 1868 } |
1869 #ifdef FEAT_TERMGUICOLORS | |
1870 if (p_tgc && aep->ae_u.cterm.ul_rgb != CTERMCOLOR) | |
1871 { | |
1872 if (aep->ae_u.cterm.ul_rgb != INVALCOLOR) | |
1873 term_ul_rgb_color(aep->ae_u.cterm.ul_rgb); | |
1874 } | |
1875 else | |
1876 #endif | |
1877 if (t_colors > 1) | |
1878 { | |
1879 if (aep->ae_u.cterm.ul_color) | |
1880 term_ul_color(aep->ae_u.cterm.ul_color - 1); | |
1881 } | |
1869 | 1882 |
1870 if (!IS_CTERM) | 1883 if (!IS_CTERM) |
1871 { | 1884 { |
1872 if (aep->ae_u.term.start != NULL) | 1885 if (aep->ae_u.term.start != NULL) |
1873 out_str(aep->ae_u.term.start); | 1886 out_str(aep->ae_u.term.start); |
2019 { | 2032 { |
2020 if (cterm_normal_fg_gui_color != INVALCOLOR) | 2033 if (cterm_normal_fg_gui_color != INVALCOLOR) |
2021 term_fg_rgb_color(cterm_normal_fg_gui_color); | 2034 term_fg_rgb_color(cterm_normal_fg_gui_color); |
2022 if (cterm_normal_bg_gui_color != INVALCOLOR) | 2035 if (cterm_normal_bg_gui_color != INVALCOLOR) |
2023 term_bg_rgb_color(cterm_normal_bg_gui_color); | 2036 term_bg_rgb_color(cterm_normal_bg_gui_color); |
2037 if (cterm_normal_ul_gui_color != INVALCOLOR) | |
2038 term_ul_rgb_color(cterm_normal_ul_gui_color); | |
2024 } | 2039 } |
2025 else | 2040 else |
2026 #endif | 2041 #endif |
2027 { | 2042 { |
2028 if (t_colors > 1) | 2043 if (t_colors > 1) |
2030 // set Normal cterm colors | 2045 // set Normal cterm colors |
2031 if (cterm_normal_fg_color != 0) | 2046 if (cterm_normal_fg_color != 0) |
2032 term_fg_color(cterm_normal_fg_color - 1); | 2047 term_fg_color(cterm_normal_fg_color - 1); |
2033 if (cterm_normal_bg_color != 0) | 2048 if (cterm_normal_bg_color != 0) |
2034 term_bg_color(cterm_normal_bg_color - 1); | 2049 term_bg_color(cterm_normal_bg_color - 1); |
2050 if (cterm_normal_ul_color != 0) | |
2051 term_ul_color(cterm_normal_ul_color - 1); | |
2035 if (cterm_normal_fg_bold) | 2052 if (cterm_normal_fg_bold) |
2036 out_str(T_MD); | 2053 out_str(T_MD); |
2037 } | 2054 } |
2038 } | 2055 } |
2039 } | 2056 } |