summaryrefslogtreecommitdiff
path: root/src/terminal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-03-28 22:37:14 +0100
committerBram Moolenaar <Bram@vim.org>2020-03-28 22:37:14 +0100
commit360bdbda817920657a2ec8bf329c96a749dd7224 (patch)
treef44d850d24c47013583fb7920ca1148cb12ff38b /src/terminal.c
parenta30590d3e78aed3f6039edc642fb7532c40ea54e (diff)
downloadvim-git-360bdbda817920657a2ec8bf329c96a749dd7224.tar.gz
patch 8.2.0472: terminal highlight name is set twice, leaking memoryv8.2.0472
Problem: Terminal highlight name is set twice, leaking memory. Solution: Delete one.
Diffstat (limited to 'src/terminal.c')
-rw-r--r--src/terminal.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/terminal.c b/src/terminal.c
index bc4532900..2ff697acf 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -6925,8 +6925,6 @@ term_and_job_init(
jobopt_T *orig_opt UNUSED)
{
term->tl_arg0_cmd = NULL;
- if (opt->jo_set2 & JO2_TERM_HIGHLIGHT)
- term->tl_highlight_name = vim_strsave(opt->jo_term_highlight);
if (create_vterm(term, term->tl_rows, term->tl_cols) == FAIL)
return FAIL;