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

@@ -1466,7 +1466,7 @@ void enter_buffer(buf_T *buf)
if (buf->terminal) {
terminal_resize(buf->terminal,
(uint16_t)curwin->w_width,
(uint16_t)(MAX(0, curwin->w_width - win_col_off(curwin))),
(uint16_t)curwin->w_height);
}