mirror of
https://github.com/neovim/neovim.git
synced 2025-09-23 03:28:33 +00:00
test/terminal: Cover race when :term shell process exits.
References #5445 See https://github.com/neovim/neovim/pull/5445#issuecomment-252529766
This commit is contained in:
@@ -366,10 +366,10 @@ void terminal_resize(Terminal *term, uint16_t width, uint16_t height)
|
||||
void terminal_enter(void)
|
||||
{
|
||||
buf_T *buf = curbuf;
|
||||
assert(buf->terminal); // Should only be called when curbuf has a terminal.
|
||||
TerminalState state, *s = &state;
|
||||
memset(s, 0, sizeof(TerminalState));
|
||||
s->term = buf->terminal;
|
||||
assert(s->term && "should only be called when curbuf has a terminal");
|
||||
|
||||
// Ensure the terminal is properly sized.
|
||||
terminal_resize(s->term, 0, 0);
|
||||
|
Reference in New Issue
Block a user