comparison src/term.c @ 20852:a9e3208048b2 v8.2.0978

patch 8.2.0978: leaking memory in termcodes test Commit: https://github.com/vim/vim/commit/0c8059e0b673a11f878acf4067a4b92679f1e0e5 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 14 15:35:58 2020 +0200 patch 8.2.0978: leaking memory in termcodes test Problem: Leaking memory in termcodes test. Solution: Set t_8u with set_option_value().
author Bram Moolenaar <Bram@vim.org>
date Sun, 14 Jun 2020 15:45:04 +0200
parents bf7453768034
children bd56f4045f37
comparison
equal deleted inserted replaced
20851:f4c1966646f3 20852:a9e3208048b2
4688 */ 4688 */
4689 4689
4690 // Unless the underline RGB color is expected to work, disable "t_8u". 4690 // Unless the underline RGB color is expected to work, disable "t_8u".
4691 // It does not work for the real Xterm, it resets the background color. 4691 // It does not work for the real Xterm, it resets the background color.
4692 if (term_props[TPR_UNDERLINE_RGB].tpr_status != TPR_YES && *T_8U != NUL) 4692 if (term_props[TPR_UNDERLINE_RGB].tpr_status != TPR_YES && *T_8U != NUL)
4693 T_8U = empty_option; 4693 set_option_value((char_u *)"t_8u", 0L, (char_u *)"", 0);
4694 4694
4695 // Only set 'ttymouse' automatically if it was not set 4695 // Only set 'ttymouse' automatically if it was not set
4696 // by the user already. 4696 // by the user already.
4697 if (!option_was_set((char_u *)"ttym") 4697 if (!option_was_set((char_u *)"ttym")
4698 && (term_props[TPR_MOUSE].tpr_status == TPR_MOUSE_XTERM2 4698 && (term_props[TPR_MOUSE].tpr_status == TPR_MOUSE_XTERM2