Mercurial > vim
comparison src/buffer.c @ 16872:a836d122231a v8.1.1437
patch 8.1.1437: code to handle callbacks is duplicated
commit https://github.com/vim/vim/commit/3a97bb3f0f8bd118ae23f1c97e55d84ff42eef20
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 1 13:28:35 2019 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 01 Jun 2019 13:30:07 +0200 |
parents | 0154363d3b98 |
children | d5e1e09a829f |
comparison
equal
deleted
inserted
replaced
16871:e5dab34ded73 | 16872:a836d122231a |
---|---|
860 #ifdef FEAT_TERMINAL | 860 #ifdef FEAT_TERMINAL |
861 free_terminal(buf); | 861 free_terminal(buf); |
862 #endif | 862 #endif |
863 #ifdef FEAT_JOB_CHANNEL | 863 #ifdef FEAT_JOB_CHANNEL |
864 vim_free(buf->b_prompt_text); | 864 vim_free(buf->b_prompt_text); |
865 free_callback(buf->b_prompt_callback, buf->b_prompt_partial); | 865 free_callback(&buf->b_prompt_callback); |
866 #endif | 866 #endif |
867 | 867 |
868 buf_hashtab_remove(buf); | 868 buf_hashtab_remove(buf); |
869 | 869 |
870 aubuflocal_remove(buf); | 870 aubuflocal_remove(buf); |