aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/vim.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-03-13 05:44:50 +0800
committerGitHub <noreply@github.com>2022-03-13 05:44:50 +0800
commit356631cba0e8dc413202f4bc874cb7f204056bae (patch)
tree0570182b73a82a97a04a2d61aa439506c75c4454 /src/nvim/api/vim.c
parent36ca585d2f6b048c518edb9a3003cb7f0ec826ab (diff)
parentf1c9065b0ecfcb8893aaffb00f77ec75e8d2b0d9 (diff)
downloadrneovim-356631cba0e8dc413202f4bc874cb7f204056bae.tar.gz
rneovim-356631cba0e8dc413202f4bc874cb7f204056bae.tar.bz2
rneovim-356631cba0e8dc413202f4bc874cb7f204056bae.zip
Merge pull request #17687 from zeertzjq/fix-channel-consistency
fix(channel): fix channel consistency
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r--src/nvim/api/vim.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c
index a942c94f46..b8c66a034c 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