feat(view): floating window's optional adaptive size specification (#1559)

This commit is contained in:
Bryan Baron 2022-08-29 17:50:18 -05:00 committed by GitHub
parent 07f59e7450
commit 757951ba6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -246,7 +246,8 @@ function M.grow_from_content()
end
function M.resize(size)
if M.View.float.enable then
if M.View.float.enable and not M.View.adaptive_size then
-- if the floating windows's adaptive size is not desired, then the
-- float size should be defined in view.float.open_win_config
return
end