aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/terminal.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-06-21 12:27:58 -0400
committerGitHub <noreply@github.com>2016-06-21 12:27:58 -0400
commita2ecbc2cc093d6639b8d3e0262909191dfa9aba4 (patch)
treec186deb62b0c3e69edfb26f312511f178d7a7265 /src/nvim/terminal.c
parent7df9dd33a1497493bc1d78a533473684388c05b0 (diff)
parent1a8d9e9d542129dca71e7baf8f38bd48008310cf (diff)
downloadrneovim-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/terminal.c')
-rw-r--r--src/nvim/terminal.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c
index 3e41926b70..fd416b3dcc 100644
--- a/src/nvim/terminal.c
+++ b/src/nvim/terminal.c
@@ -348,15 +348,6 @@ void terminal_resize(Terminal *term, uint16_t width, uint16_t height)
height = (uint16_t)curheight;
}
- // The new width/height are the minimum for all windows that display the
- // terminal in the current tab.
- FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
- if (!wp->w_closing && wp->w_buffer->terminal == term) {
- width = (uint16_t)MIN(width, (uint16_t)(wp->w_width - win_col_off(wp)));
- height = (uint16_t)MIN(height, (uint16_t)wp->w_height);
- }
- }
-
if (curheight == height && curwidth == width) {
return;
}