diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-10-28 18:02:21 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-10-28 18:02:21 +0200 |
commit | 8c732f7274145805be817c481e313059bce9f037 (patch) | |
tree | 6b16f4cbda3088746846570ea1f3b9be29b475e5 /src/nvim/buffer.c | |
parent | da13d9a30cf7a5428649a24f8761ae1d5dbc1f02 (diff) | |
parent | bcf266de46b054b564727d5d31e4421ba09f5704 (diff) | |
download | rneovim-8c732f7274145805be817c481e313059bce9f037.tar.gz rneovim-8c732f7274145805be817c481e313059bce9f037.tar.bz2 rneovim-8c732f7274145805be817c481e313059bce9f037.zip |
Merge #7440 "terminal: adjust for 'number'"
closes #5310
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index fc5bb90973..9d42fbc1b3 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -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); } |