diff options
author | erw7 <erw7.github@gmail.com> | 2021-11-12 00:07:03 +0900 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-03-12 19:23:45 +0800 |
commit | 5051510ade5f171c1239906c8638e804356186fe (patch) | |
tree | 43ce21d99a58a7c77baf6f98d0c5234070db93e4 /src/nvim/api/vim.c | |
parent | ab456bc304965d83585cd248284cb36c96927457 (diff) | |
download | rneovim-5051510ade5f171c1239906c8638e804356186fe.tar.gz rneovim-5051510ade5f171c1239906c8638e804356186fe.tar.bz2 rneovim-5051510ade5f171c1239906c8638e804356186fe.zip |
fix(channel): fix channel consistency
- Fix the problem that chanclose() does not work for channel created by
nvim_open_term().
- Fix the problem that the loopback channel is not released.
- Fix the error message when sending raw data to the loopback channel.
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r-- | src/nvim/api/vim.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c index b691dee2ef..c7ccc6bfeb 100644 --- a/src/nvim/api/vim.c +++ b/src/nvim/api/vim.c @@ -1140,6 +1140,7 @@ Integer nvim_open_term(Buffer buffer, DictionaryOf(LuaRef) opts, Error *err) TerminalOptions topts; Channel *chan = channel_alloc(kChannelStreamInternal); chan->stream.internal.cb = cb; + chan->stream.internal.closed = false; topts.data = chan; // NB: overridden in terminal_check_size if a window is already // displaying the buffer |