Mirror of the Vim source from https://github.com/vim/vim
リビジョン | b3f956c2ed3cef630adf9861ea7009391aa1787e (tree) |
---|---|
日時 | 2020-03-29 06:45:03 |
作者 | Bram Moolenaar <Bram@vim....> |
コミッター | Bram Moolenaar |
patch 8.2.0472: terminal highlight name is set twice, leaking memory
Commit: https://github.com/vim/vim/commit/360bdbda817920657a2ec8bf329c96a749dd7224
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 28 22:37:14 2020 +0100
@@ -6925,8 +6925,6 @@ | ||
6925 | 6925 | jobopt_T *orig_opt UNUSED) |
6926 | 6926 | { |
6927 | 6927 | term->tl_arg0_cmd = NULL; |
6928 | - if (opt->jo_set2 & JO2_TERM_HIGHLIGHT) | |
6929 | - term->tl_highlight_name = vim_strsave(opt->jo_term_highlight); | |
6930 | 6928 | |
6931 | 6929 | if (create_vterm(term, term->tl_rows, term->tl_cols) == FAIL) |
6932 | 6930 | return FAIL; |
@@ -739,6 +739,8 @@ | ||
739 | 739 | static int included_patches[] = |
740 | 740 | { /* Add new patch number below this line */ |
741 | 741 | /**/ |
742 | + 472, | |
743 | +/**/ | |
742 | 744 | 471, |
743 | 745 | /**/ |
744 | 746 | 470, |