mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 20:18:32 +00:00
Always resize the embedded vterm properly
This commit is contained in:
@@ -1249,6 +1249,10 @@ void enter_buffer(buf_T *buf)
|
||||
/* mark cursor position as being invalid */
|
||||
curwin->w_valid = 0;
|
||||
|
||||
if (buf->terminal) {
|
||||
terminal_resize(buf->terminal, curwin->w_width, curwin->w_height);
|
||||
}
|
||||
|
||||
/* Make sure the buffer is loaded. */
|
||||
if (curbuf->b_ml.ml_mfp == NULL) { /* need to load the file */
|
||||
/* If there is no filetype, allow for detecting one. Esp. useful for
|
||||
|
Reference in New Issue
Block a user