terminal: Don't redraw the entire screen when resizing (#6167)

This commit is contained in:
Tommy Allen 2017-02-26 04:21:44 -05:00 committed by Justin M. Keyes
parent 0ef2b07d69
commit 7ea81fe443
3 changed files with 3 additions and 4 deletions

View File

@ -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);
}
}

View File

@ -117,7 +117,7 @@ describe('terminal mouse', function()
rows: 5, cols: 25 |rows: 5, cols: 25 |
{2:^ } |{2: } |
========== ========== |
|
:vsp |
]])
feed(':enew | set number<cr>')
screen:expect([[

View File

@ -37,7 +37,7 @@ describe('terminal', function()
{4:~ }|
{4:~ }|
========== |
|
:2split |
]])
execute('wincmd p')
screen:expect([[