mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
terminal: Don't redraw the entire screen when resizing (#6167)
This commit is contained in:
parent
0ef2b07d69
commit
7ea81fe443
@ -4848,7 +4848,7 @@ void scroll_to_fraction(win_T *wp, int prev_height)
|
|||||||
|
|
||||||
if (wp->w_buffer->terminal) {
|
if (wp->w_buffer->terminal) {
|
||||||
terminal_resize(wp->w_buffer->terminal, 0, wp->w_height);
|
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) {
|
if (wp->w_height != 0) {
|
||||||
terminal_resize(wp->w_buffer->terminal, wp->w_width, 0);
|
terminal_resize(wp->w_buffer->terminal, wp->w_width, 0);
|
||||||
}
|
}
|
||||||
redraw_win_later(wp, CLEAR);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ describe('terminal mouse', function()
|
|||||||
rows: 5, cols: 25 |rows: 5, cols: 25 |
|
rows: 5, cols: 25 |rows: 5, cols: 25 |
|
||||||
{2:^ } |{2: } |
|
{2:^ } |{2: } |
|
||||||
========== ========== |
|
========== ========== |
|
||||||
|
|
:vsp |
|
||||||
]])
|
]])
|
||||||
feed(':enew | set number<cr>')
|
feed(':enew | set number<cr>')
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
|
@ -37,7 +37,7 @@ describe('terminal', function()
|
|||||||
{4:~ }|
|
{4:~ }|
|
||||||
{4:~ }|
|
{4:~ }|
|
||||||
========== |
|
========== |
|
||||||
|
|
:2split |
|
||||||
]])
|
]])
|
||||||
execute('wincmd p')
|
execute('wincmd p')
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
|
Loading…
Reference in New Issue
Block a user