commit | 3a97bb3f0f8bd118ae23f1c97e55d84ff42eef20 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Jun 01 13:28:35 2019 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Jun 01 13:28:35 2019 +0200 |
tree | b7013f43afaaba6ba20b356a7a80fe55add24f1a | |
parent | 7dd64a3e57d296fdee3b3ffe6d938f634b59848c [diff] [blame] |
patch 8.1.1437: code to handle callbacks is duplicated Problem: Code to handle callbacks is duplicated. Solution: Add callback_T and functions to deal with it.
diff --git a/src/buffer.c b/src/buffer.c index 3bfb639..66f6fc6 100644 --- a/src/buffer.c +++ b/src/buffer.c
@@ -862,7 +862,7 @@ #endif #ifdef FEAT_JOB_CHANNEL vim_free(buf->b_prompt_text); - free_callback(buf->b_prompt_callback, buf->b_prompt_partial); + free_callback(&buf->b_prompt_callback); #endif buf_hashtab_remove(buf);