From 21109272f5b0d32c408dc292561c0b1f2f8ebc53 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 30 Jan 2020 16:27:20 +0100 Subject: patch 8.2.0181: problems parsing :term arguments Problem: Problems parsing :term arguments. Solution: Improve parsing, fix memory leak, add tests. (Ozaki Kiichi, closes #5536) --- src/structs.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/structs.h') diff --git a/src/structs.h b/src/structs.h index 762cd867c..bb3e72f63 100644 --- a/src/structs.h +++ b/src/structs.h @@ -2106,7 +2106,7 @@ typedef struct int jo_block_write; // for testing only int jo_part; int jo_id; - char_u jo_soe_buf[NUMBUFLEN]; + char_u jo_stoponexit_buf[NUMBUFLEN]; char_u *jo_stoponexit; dict_T *jo_env; // environment variables char_u jo_cwd_buf[NUMBUFLEN]; @@ -2121,17 +2121,21 @@ typedef struct buf_T *jo_bufnr_buf; int jo_hidden; int jo_term_norestore; + char_u jo_term_name_buf[NUMBUFLEN]; char_u *jo_term_name; + char_u jo_term_opencmd_buf[NUMBUFLEN]; char_u *jo_term_opencmd; int jo_term_finish; + char_u jo_eof_chars_buf[NUMBUFLEN]; char_u *jo_eof_chars; + char_u jo_term_kill_buf[NUMBUFLEN]; char_u *jo_term_kill; # if defined(FEAT_GUI) || defined(FEAT_TERMGUICOLORS) long_u jo_ansi_colors[16]; # endif int jo_tty_type; // first character of "tty_type" - char_u *jo_term_api; char_u jo_term_api_buf[NUMBUFLEN]; + char_u *jo_term_api; #endif } jobopt_T; -- cgit v1.2.1