diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-11-13 02:06:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-13 02:06:32 +0100 |
commit | e6beb60da517b6d7d7461687bf91f87d097b9563 (patch) | |
tree | 82619e74c1c5c2ce5c55c9c2d860fee95dd03575 /src/nvim/buffer.c | |
parent | 20c672a4604bc400229c52795a8488cd034ed1b4 (diff) | |
download | rneovim-e6beb60da517b6d7d7461687bf91f87d097b9563.tar.gz rneovim-e6beb60da517b6d7d7461687bf91f87d097b9563.tar.bz2 rneovim-e6beb60da517b6d7d7461687bf91f87d097b9563.zip |
:terminal : fix crash on resize (#7547)
closes #7538
Fix wrong window references from #7440
Remove some eager resizing. Still mostly doesn't address #4997.
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index f874268910..766003a021 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -64,7 +64,6 @@ #include "nvim/spell.h" #include "nvim/strings.h" #include "nvim/syntax.h" -#include "nvim/terminal.h" #include "nvim/ui.h" #include "nvim/undo.h" #include "nvim/version.h" @@ -1464,12 +1463,6 @@ void enter_buffer(buf_T *buf) /* mark cursor position as being invalid */ curwin->w_valid = 0; - if (buf->terminal) { - terminal_resize(buf->terminal, - (uint16_t)(MAX(0, curwin->w_width - win_col_off(curwin))), - (uint16_t)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 |