Merge pull request #17687 from zeertzjq/fix-channel-consistency

fix(channel): fix channel consistency
This commit is contained in:
zeertzjq
2022-03-13 05:44:50 +08:00
committed by GitHub
6 changed files with 112 additions and 26 deletions

View File

@@ -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