diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2016-06-20 18:20:19 +0200 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2016-06-20 18:20:45 +0200 |
commit | cc8f477d18ef872b1f8850213a23c4fe333f2fcf (patch) | |
tree | e819395817cf506c915980ccfc8653d7c0a034e9 /src/nvim/buffer.c | |
parent | 7df9dd33a1497493bc1d78a533473684388c05b0 (diff) | |
download | rneovim-cc8f477d18ef872b1f8850213a23c4fe333f2fcf.tar.gz rneovim-cc8f477d18ef872b1f8850213a23c4fe333f2fcf.tar.bz2 rneovim-cc8f477d18ef872b1f8850213a23c4fe333f2fcf.zip |
Always resize the embedded vterm properly
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 72724b0ffd..438a85dd5d 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -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 |