Mercurial > vim
diff src/evalfunc.c @ 28467:3beb14b12bbd v8.2.4758
patch 8.2.4758: when using an LSP channel want to get the message ID
Commit: https://github.com/vim/vim/commit/3b470ae88f034d3741832ab1cc51a5bb8edaf4c6
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sat Apr 16 10:41:27 2022 +0100
patch 8.2.4758: when using an LSP channel want to get the message ID
Problem: When using an LSP channel want to get the message ID.
Solution: Have ch_sendexpr() return the ID. (Yegappan Lakshmanan,
closes #10202)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 16 Apr 2022 11:45:03 +0200 |
parents | 52ef65c0637f |
children | 922cd0dced4b |
line wrap: on
line diff
--- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -1660,7 +1660,7 @@ static funcentry_T global_functions[] = {"ch_readraw", 1, 2, FEARG_1, arg2_chan_or_job_dict, ret_string, JOB_FUNC(f_ch_readraw)}, {"ch_sendexpr", 2, 3, FEARG_1, arg23_chanexpr, - ret_void, JOB_FUNC(f_ch_sendexpr)}, + ret_any, JOB_FUNC(f_ch_sendexpr)}, {"ch_sendraw", 2, 3, FEARG_1, arg23_chanraw, ret_void, JOB_FUNC(f_ch_sendraw)}, {"ch_setoptions", 2, 2, FEARG_1, arg2_chan_or_job_dict,