mirror of
https://github.com/neovim/neovim.git
synced 2025-11-16 15:21:20 +00:00
fix(terminal): check size when switching buffers
Problem: terminal not always resized when switching to its buffer. Solution: add missing calls to terminal_check_size.
This commit is contained in:
@@ -1773,6 +1773,10 @@ void enter_buffer(buf_T *buf)
|
||||
}
|
||||
curbuf->b_last_used = time(NULL);
|
||||
|
||||
if (curbuf->terminal != NULL) {
|
||||
terminal_check_size(curbuf->terminal);
|
||||
}
|
||||
|
||||
redraw_later(curwin, UPD_NOT_VALID);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user