[vim] Set maxwidth and maxheight when creating a popup

For me, this fixes invalid popup size problem on Windows GVim
This commit is contained in:
Junegunn Choi 2020-10-31 22:27:58 +09:00
parent f08f4fd87d
commit c144c95cda
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627
1 changed files with 2 additions and 0 deletions

View File

@ -912,7 +912,9 @@ else
\ line: a:opts.row,
\ col: a:opts.col,
\ minwidth: a:opts.width,
\ maxwidth: a:opts.width,
\ minheight: a:opts.height,
\ maxheight: a:opts.height,
\ zindex: 1000,
\ })}
autocmd TerminalOpen * ++once call s:popup_create(str2nr(expand('<abuf>')))