aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTommy Allen <tommy@esdf.io>2017-02-26 04:21:44 -0500
committerJustin M. Keyes <justinkz@gmail.com>2017-02-26 10:21:44 +0100
commit7ea81fe443369382b3ec8c9cfb5a80bcbcbe40bd (patch)
treec51004076062357f275e0ae53ef77c2cb79d35d7 /src
parent0ef2b07d69c3f4da38219d8eef045232d18e9c37 (diff)
downloadrneovim-7ea81fe443369382b3ec8c9cfb5a80bcbcbe40bd.tar.gz
rneovim-7ea81fe443369382b3ec8c9cfb5a80bcbcbe40bd.tar.bz2
rneovim-7ea81fe443369382b3ec8c9cfb5a80bcbcbe40bd.zip
terminal: Don't redraw the entire screen when resizing (#6167)
Diffstat (limited to 'src')
-rw-r--r--src/nvim/window.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c
index 28269e8889..73a60b2e04 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -4848,7 +4848,7 @@ void scroll_to_fraction(win_T *wp, int prev_height)
if (wp->w_buffer->terminal) {
terminal_resize(wp->w_buffer->terminal, 0, wp->w_height);
- redraw_win_later(wp, CLEAR);
+ redraw_win_later(wp, NOT_VALID);
}
}
@@ -4872,7 +4872,6 @@ void win_new_width(win_T *wp, int width)
if (wp->w_height != 0) {
terminal_resize(wp->w_buffer->terminal, wp->w_width, 0);
}
- redraw_win_later(wp, CLEAR);
}
}