diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-08 15:39:39 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-08 15:39:39 +0000 |
commit | 9f1a39a5d1cd7989ada2d1cb32f97d84360e050f (patch) | |
tree | 9ea5c2c61d570af5fa2cee2e1a7ef6d6d107569e /src/message.c | |
parent | 67ffb417861a90fd2c1b215a42fd230272ed94cb (diff) | |
download | vim-git-9f1a39a5d1cd7989ada2d1cb32f97d84360e050f.tar.gz |
patch 8.2.4040: keeping track of allocated lines is too complicatedv8.2.4040
Problem: Keeping track of allocated lines in user functions is too
complicated.
Solution: Instead of freeing individual lines keep them all until the end.
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/message.c b/src/message.c index 17c541f95..04a51fbf3 100644 --- a/src/message.c +++ b/src/message.c @@ -587,7 +587,7 @@ ignore_error_for_testing(char_u *error) if (STRCMP("RESET", error) == 0) ga_clear_strings(&ignore_error_list); else - ga_add_string(&ignore_error_list, error); + ga_copy_string(&ignore_error_list, error); } static int |