comparison src/term.c @ 28548:a54564337e89 v8.2.4798

patch 8.2.4798: t_8u option was reset even when set by the user Commit: https://github.com/vim/vim/commit/dbec26d7893dca4ff38fa4b96ac91203d30ccae5 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Apr 20 19:08:50 2022 +0100 patch 8.2.4798: t_8u option was reset even when set by the user Problem: t_8u option was reset even when set by the user. Solution: Only reset t_8u when using the default value. (closes https://github.com/vim/vim/issues/10239)
author Bram Moolenaar <Bram@vim.org>
date Wed, 20 Apr 2022 20:15:04 +0200
parents 8751e815864e
children 6ff407067190
comparison
equal deleted inserted replaced
28547:870e183f36aa 28548:a54564337e89
4824 // Unless the underline RGB color is expected to work, disable "t_8u". 4824 // Unless the underline RGB color is expected to work, disable "t_8u".
4825 // It does not work for the real Xterm, it resets the background color. 4825 // It does not work for the real Xterm, it resets the background color.
4826 // This may cause some flicker. Alternative would be to set "t_8u" 4826 // This may cause some flicker. Alternative would be to set "t_8u"
4827 // here if the terminal is expected to support it, but that might 4827 // here if the terminal is expected to support it, but that might
4828 // conflict with what was set in the .vimrc. 4828 // conflict with what was set in the .vimrc.
4829 if (term_props[TPR_UNDERLINE_RGB].tpr_status != TPR_YES && *T_8U != NUL) 4829 if (term_props[TPR_UNDERLINE_RGB].tpr_status != TPR_YES
4830 && *T_8U != NUL
4831 && !option_was_set((char_u *)"t_8u"))
4830 { 4832 {
4831 set_string_option_direct((char_u *)"t_8u", -1, (char_u *)"", 4833 set_string_option_direct((char_u *)"t_8u", -1, (char_u *)"",
4832 OPT_FREE, 0); 4834 OPT_FREE, 0);
4833 } 4835 }
4834 if (*T_8U != NUL && write_t_8u_state == MAYBE) 4836 if (*T_8U != NUL && write_t_8u_state == MAYBE)