To: vim_dev@googlegroups.com Subject: Patch 8.2.0978 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.0978 Problem: Leaking memory in termcodes test. Solution: Set t_8u with set_option_value(). Files: src/term.c *** ../vim-8.2.0977/src/term.c 2020-06-14 14:34:13.337463441 +0200 --- src/term.c 2020-06-14 15:34:00.866508937 +0200 *************** *** 4690,4696 **** // Unless the underline RGB color is expected to work, disable "t_8u". // It does not work for the real Xterm, it resets the background color. if (term_props[TPR_UNDERLINE_RGB].tpr_status != TPR_YES && *T_8U != NUL) ! T_8U = empty_option; // Only set 'ttymouse' automatically if it was not set // by the user already. --- 4690,4696 ---- // Unless the underline RGB color is expected to work, disable "t_8u". // It does not work for the real Xterm, it resets the background color. if (term_props[TPR_UNDERLINE_RGB].tpr_status != TPR_YES && *T_8U != NUL) ! set_option_value((char_u *)"t_8u", 0L, (char_u *)"", 0); // Only set 'ttymouse' automatically if it was not set // by the user already. *** ../vim-8.2.0977/src/version.c 2020-06-14 14:34:13.337463441 +0200 --- src/version.c 2020-06-14 15:35:37.738109790 +0200 *************** *** 756,757 **** --- 756,759 ---- { /* Add new patch number below this line */ + /**/ + 978, /**/ -- Individualists unite! /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///