diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-06-21 12:27:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-21 12:27:58 -0400 |
commit | a2ecbc2cc093d6639b8d3e0262909191dfa9aba4 (patch) | |
tree | c186deb62b0c3e69edfb26f312511f178d7a7265 /src/nvim/buffer.c | |
parent | 7df9dd33a1497493bc1d78a533473684388c05b0 (diff) | |
parent | 1a8d9e9d542129dca71e7baf8f38bd48008310cf (diff) | |
download | rneovim-a2ecbc2cc093d6639b8d3e0262909191dfa9aba4.tar.gz rneovim-a2ecbc2cc093d6639b8d3e0262909191dfa9aba4.tar.bz2 rneovim-a2ecbc2cc093d6639b8d3e0262909191dfa9aba4.zip |
Merge #4929 from mhinz/fix-term
Fix #3864
Fix #4820
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 |