terminal: Account for number column (#5310)

This commit is contained in:
Sam Wilson
2017-10-25 11:18:47 -04:00
parent f0c2f82e90
commit b8a67551d8
5 changed files with 44 additions and 5 deletions

View File

@@ -692,6 +692,12 @@ static void win_update(win_T *wp)
if (wp->w_nrwidth != i) {
type = NOT_VALID;
wp->w_nrwidth = i;
if (buf->terminal) {
terminal_resize(buf->terminal,
(uint16_t)(MAX(0, curwin->w_width - win_col_off(curwin))),
(uint16_t)curwin->w_height);
}
} else if (buf->b_mod_set && buf->b_mod_xlines != 0 && wp->w_redraw_top != 0) {
/*
* When there are both inserted/deleted lines and specific lines to be